diff options
| author | Nilay Shroff <[email protected]> | 2025-03-13 11:51:50 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2025-03-13 13:22:13 +0000 |
| commit | a3996d11f3ab743e6cc4e3529ce9459c2cd27139 (patch) | |
| tree | 3faa7433f5152f95dd82ced70f8fa2058060dd56 /tools/testing/selftests/net/lib/py/utils.py | |
| parent | block: remove unused parameter 'q' parameter in __blk_rq_map_sg() (diff) | |
| download | kernel-a3996d11f3ab743e6cc4e3529ce9459c2cd27139.tar.gz kernel-a3996d11f3ab743e6cc4e3529ce9459c2cd27139.zip | |
block: protect debugfs attrs using elevator_lock instead of sysfs_lock
Currently, the block debugfs attributes (tags, tags_bitmap, sched_tags,
and sched_tags_bitmap) are protected using q->sysfs_lock. However, these
attributes are updated in multiple scenarios:
- During driver probe method
- During an elevator switch/update
- During an nr_hw_queues update
- When writing to the sysfs attribute nr_requests
All these update paths (except driver probe method, which doesn't
require any protection) are already protected using q->elevator_lock. To
ensure consistency and proper synchronization, replace q->sysfs_lock
with q->elevator_lock for protecting these debugfs attributes.
Signed-off-by: Nilay Shroff <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[axboe: some commit message rewording/fixes]
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
