All of lore.kernel.org
 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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.