Message ID | 20250128143436.874357-1-nilay@linux.ibm.com (mailing list archive) |
---|---|
Headers | show |
Series | block: remove q->sysfs_dir_lock and fix race updating nr_hw_queue | expand |
On Tue, 28 Jan 2025 20:04:12 +0530, Nilay Shroff wrote: > There're two patches in this patchest. > The first patch removes redundant q->sysfs_dir_lock. > The second patch fixes nr_hw_queue update racing with disk addition/ > removal. > > In the current implementation we use q->sysfs_dir_lock for protecting > kobject addition/deletion while we register/unregister blk-mq with > sysfs. However the sysfs/kernfs internal implementation already protects > against the simultaneous addtion/deletion of kobjects. So in that sense > use of q->sysfs_dir_lock appears redundant. > > [...] Applied, thanks! [1/2] block: get rid of request queue ->sysfs_dir_lock commit: fe6628608627424fb4a6d4c8d2235822457c5d9c [2/2] block: fix nr_hw_queue update racing with disk addition/removal commit: 14ef49657ff3b7156952b2eadcf2e5bafd735795 Best regards,