Linux block layer
 help / color / mirror / Atom feed
* [PATCH 0/3] null_blk: fix mutex initialization and configfs teardown race
@ 2026-07-06 12:35 Zizhi Wo
  2026-07-06 12:35 ` [PATCH 1/3] null_blk: use DEFINE_MUTEX for the file-scope mutex Zizhi Wo
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Zizhi Wo @ 2026-07-06 12:35 UTC (permalink / raw)
  To: axboe, dlemoal, nilay, linux-block, kch, johannes.thumshirn,
	kbusch, bvanassche
  Cc: linux-kernel, yangerkun, chengzhihao1, wozizhi

This series fixes a few simple issues in null_blk.

Patches 1-2 fix a problem where the null_blk mutex was left uninitialized.
The fix for the first issue was originally sent as a separate patch[1].
Following Bart's suggestion, it now use DEFINE_MUTEX() and the lock has
been renamed to a more descriptive name.

Patch 3 fixes concurrency issues around configfs registration.

See the individual patch descriptions for details.

[1] https://lore.kernel.org/all/20260704092323.748772-1-wozizhi@huaweicloud.com/

Zizhi Wo (3):
  null_blk: use DEFINE_MUTEX for the file-scope mutex
  null_blk: give the file-scope mutex a descriptive name
  null_blk: register configfs subsystem after creating default devices

 drivers/block/null_blk/main.c | 50 +++++++++++++++--------------------
 1 file changed, 22 insertions(+), 28 deletions(-)

-- 
2.52.0


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

end of thread, other threads:[~2026-07-06 14:45 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-06 12:35 [PATCH 0/3] null_blk: fix mutex initialization and configfs teardown race Zizhi Wo
2026-07-06 12:35 ` [PATCH 1/3] null_blk: use DEFINE_MUTEX for the file-scope mutex Zizhi Wo
2026-07-06 13:13   ` Bart Van Assche
2026-07-06 12:35 ` [PATCH 2/3] null_blk: give the file-scope mutex a descriptive name Zizhi Wo
2026-07-06 13:12   ` Bart Van Assche
2026-07-06 13:21     ` Zizhi Wo
2026-07-06 14:45       ` Bart Van Assche
2026-07-06 12:35 ` [PATCH 3/3] null_blk: register configfs subsystem after creating default devices Zizhi Wo
2026-07-06 13:17   ` Bart Van Assche
2026-07-06 13:34     ` Zizhi Wo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox