aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/net/lib/py/utils.py
diff options
context:
space:
mode:
authorNilay Shroff <[email protected]>2025-03-13 11:51:52 +0000
committerJens Axboe <[email protected]>2025-03-13 13:23:43 +0000
commit0e94ed33681424a6dce65c62837e08e4c7aa09ac (patch)
treecb95082667f464c5bd14eed5af97b99d0c83e7e1 /tools/testing/selftests/net/lib/py/utils.py
parentblock: remove unnecessary goto labels in debugfs attribute read methods (diff)
downloadkernel-0e94ed33681424a6dce65c62837e08e4c7aa09ac.tar.gz
kernel-0e94ed33681424a6dce65c62837e08e4c7aa09ac.zip
block: protect debugfs attribute method hctx_busy_show
The hctx_busy_show method in debugfs is currently unprotected. This method iterates over all started requests in a tagset and prints them. However, the tags can be updated concurrently via the sysfs attributes 'nr_requests' or 'scheduler' (elevator switch), leading to potential race conditions. Since sysfs attributes 'nr_requests' and 'scheduler' are already protected using q->elevator_lock, extend this protection to the debugfs 'busy' attribute as well to ensure consistency. Signed-off-by: Nilay Shroff <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/testing/selftests/net/lib/py/utils.py')
0 files changed, 0 insertions, 0 deletions