summaryrefslogtreecommitdiffstats
path: root/scripts/stackdelta
diff options
context:
space:
mode:
authorPavel Tatashin <pasha.tatashin@soleen.com>2021-01-26 09:46:30 -0500
committerJens Axboe <axboe@kernel.dk>2021-01-26 13:08:54 -0700
commit6cc8e7430801fa238bd7d3acae1eb406c6e02fe1 (patch)
tree56cd7cc2a0396ec04459122368b05771873e8b77 /scripts/stackdelta
parent767630c63bb23acf022adb265574996ca39a4645 (diff)
downloadlinux-stable-6cc8e7430801fa238bd7d3acae1eb406c6e02fe1.tar.gz
linux-stable-6cc8e7430801fa238bd7d3acae1eb406c6e02fe1.tar.bz2
linux-stable-6cc8e7430801fa238bd7d3acae1eb406c6e02fe1.zip
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 <pasha.tatashin@soleen.com> Reviewed-by: Tyler Hicks <tyhicks@linux.microsoft.com> Reviewed-by: Petr Vorel <pvorel@suse.cz> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'scripts/stackdelta')
0 files changed, 0 insertions, 0 deletions