aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib
diff options
context:
space:
mode:
authorPavel Tatashin <[email protected]>2021-01-26 09:46:30 -0500
committerJens Axboe <[email protected]>2021-01-26 13:08:54 -0700
commit6cc8e7430801fa238bd7d3acae1eb406c6e02fe1 (patch)
tree56cd7cc2a0396ec04459122368b05771873e8b77 /tools/perf/scripts/python/Perf-Trace-Util/lib
parent767630c63bb23acf022adb265574996ca39a4645 (diff)
loop: scale loop device by introducing per device lock
Currently, loop device has only one global lock: loop_ctl_mutex. This becomes hot in scenarios where many loop devices are used. Scale it by introducing per-device lock: lo_mutex that protects modifications of all fields in struct loop_device. Keep loop_ctl_mutex to protect global data: loop_index_idr, loop_lookup, loop_add. The new lock ordering requirement is that loop_ctl_mutex must be taken before lo_mutex. Signed-off-by: Pavel Tatashin <[email protected]> Reviewed-by: Tyler Hicks <[email protected]> Reviewed-by: Petr Vorel <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib')
0 files changed, 0 insertions, 0 deletions