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

2021-01-26 Thread Petr Vorel
Hi, > 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 lo

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

2021-01-26 Thread Pavel Tatashin
On Tue, Jan 26, 2021 at 4:53 AM Chaitanya Kulkarni wrote: > > On 1/25/21 12:15 PM, Pavel Tatashin wrote: > > Currently, loop device has only one global lock: > > loop_ctl_mutex. > Above line can be :- > Currently, loop device has only one global lock: loop_ctl_mutex. OK > > Also please provide a

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

2021-01-26 Thread Pavel Tatashin
On Tue, Jan 26, 2021 at 4:24 AM Petr Vorel wrote: > > Hi, > > > 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

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

2021-01-26 Thread Chaitanya Kulkarni
On 1/25/21 12:15 PM, Pavel Tatashin wrote: > Currently, loop device has only one global lock: > loop_ctl_mutex. Above line can be :- Currently, loop device has only one global lock: loop_ctl_mutex. Also please provide a complete discretion what are the members it protects, i.e. how big the size of