On Mon, Apr 08, 2019 at 09:37:09AM -0700, Davidlohr Bueso wrote: > On Mon, 2019-04-08 at 12:33 +0200, Jan Kara wrote: > > On Fri 05-04-19 08:17:30, Dave Chinner wrote: > > > FYI, I'm working on a range lock implementation that should both > > > solve the performance issue and the reader starvation issue at the > > > same time by allowing concurrent buffered reads and writes to > > > different file ranges. > > > > Are you aware of range locks Davidlohr has implemented [1]? It didn't get > > merged because he had no in-tree user at the time (he was more aiming at > > converting mmap_sem which is rather difficult). But the generic lock > > implementation should be well usable. > > > > Added Davidlohr to CC. > > > > Honza > > > > [1] https://lkml.org/lkml/2017/3/7/22 > > fyi this was the latest version (had some naming updates per peterz). > > https://lkml.org/lkml/2018/2/4/232 No, I wasn't aware of these because they haven't ever been posted to a list I subscribe to and they haven't been merged. I'll go have a look at them over the next few days. Cheers, Dave. -- Dave Chinner david@xxxxxxxxxxxxx