[PATCH 0/3] null_blk: fix mutex initialization and configfs teardown race

From: Zizhi Wo

Date: Mon Jul 06 2026 - 08:47:16 EST


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@xxxxxxxxxxxxxxx/

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