Re: [PATCH v2 1/1] loop: scale loop device by introducing per device lock

2020-07-23 Thread Tyler Hicks
On 2020-07-23 17:17:48, Pavel Tatashin wrote: > 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 the > fields in struct loop_device. Keep loop_

[PATCH v2 1/1] loop: scale loop device by introducing per device lock

2020-07-23 Thread Pavel Tatashin
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 the fields in struct loop_device. Keep loop_ctl_mutex to protect global data such as loop_index_idr, loo