aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorNilay Shroff <[email protected]>2025-03-19 10:53:45 +0000
committerJens Axboe <[email protected]>2025-03-19 17:35:45 +0000
commit89ed5fa3b5419f04452051fbcb6d3e5b801cdb1b (patch)
treec73f710487b216e4b0c00d4f4b6f0cfb55b2d4af /net/unix/sysctl_net_unix.c
parentublk: remove io_cmds list in ublk_queue (diff)
downloadkernel-89ed5fa3b5419f04452051fbcb6d3e5b801cdb1b.tar.gz
kernel-89ed5fa3b5419f04452051fbcb6d3e5b801cdb1b.zip
block: release q->elevator_lock in ioc_qos_write
The ioc_qos_write method acquires q->elevator_lock to protect updates to blk-wbt parameters. Once these updates are complete, the lock should be released before returning from ioc_qos_write. However, in one code path, the release of q->elevator_lock was mistakenly omitted, potentially leading to a lock leak. This commit fixes the issue by ensuring that q->elevator_lock is properly released in all return paths of ioc_qos_write. Fixes: 245618f8e45f ("block: protect wbt_lat_usec using q->elevator_lock") Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-lkp/[email protected] Signed-off-by: Nilay Shroff <[email protected]> Reviewed-by: Ming Lei <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions