linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] fix races between nbd setup and module removal
@ 2021-09-03  2:48 Hou Tao
  2021-09-03  2:48 ` [PATCH 1/2] nbd: call genl_unregister_family() first in nbd_cleanup() Hou Tao
  2021-09-03  2:48 ` [PATCH 2/2] nbd: fix race between nbd_alloc_config() and module removal Hou Tao
  0 siblings, 2 replies; 3+ messages in thread
From: Hou Tao @ 2021-09-03  2:48 UTC (permalink / raw)
  To: Josef Bacik, Jens Axboe; +Cc: Christoph Hellwig, linux-block, nbd, houtao1

Hi,

The patch series aims to fix the races between nbd setup and module
removal which will lead to oops. Patch #1 serializes the concurrently
calling of nbd_genl_connect() and nbd_cleanup(), and patch #2 fixes
race between nbd_alloc_config() and nbd_cleanup().

Any comments are welcome.

Regards,
Tao

Hou Tao (2):
  nbd: call genl_unregister_family() first in nbd_cleanup()
  nbd: fix race between nbd_alloc_config() and module removal

 drivers/block/nbd.c | 32 ++++++++++++++++++++++----------
 1 file changed, 22 insertions(+), 10 deletions(-)

-- 
2.29.2


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-09-03  2:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-03  2:48 [PATCH 0/2] fix races between nbd setup and module removal Hou Tao
2021-09-03  2:48 ` [PATCH 1/2] nbd: call genl_unregister_family() first in nbd_cleanup() Hou Tao
2021-09-03  2:48 ` [PATCH 2/2] nbd: fix race between nbd_alloc_config() and module removal Hou Tao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).