aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorNilay Shroff <[email protected]>2025-01-28 14:34:14 +0000
committerJens Axboe <[email protected]>2025-01-29 14:16:47 +0000
commit14ef49657ff3b7156952b2eadcf2e5bafd735795 (patch)
treeaa1ede3f316d5037e030900684af1372c398310a /net/unix/af_unix.c
parentblock: get rid of request queue ->sysfs_dir_lock (diff)
downloadkernel-14ef49657ff3b7156952b2eadcf2e5bafd735795.tar.gz
kernel-14ef49657ff3b7156952b2eadcf2e5bafd735795.zip
block: fix nr_hw_queue update racing with disk addition/removal
The nr_hw_queue update could potentially race with disk addtion/removal while registering/unregistering hctx sysfs files. The __blk_mq_update_ nr_hw_queues() runs with q->tag_list_lock held and so to avoid it racing with disk addition/removal we should acquire q->tag_list_lock while registering/unregistering hctx sysfs files. With this patch, blk_mq_sysfs_register() (called during disk addition) and blk_mq_sysfs_unregister() (called during disk removal) now runs with q->tag_list_lock held so that it avoids racing with __blk_mq_update _nr_hw_queues(). Signed-off-by: Nilay Shroff <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Hannes Reinecke <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions