Re: [PATCH] xfs: Remove i_rwsem lock in buffered read

From: Brian Foster
Date: Thu Jan 16 2025 - 09:22:09 EST


On Thu, Jan 16, 2025 at 08:41:21AM +1100, Dave Chinner wrote:
> On Tue, Jan 14, 2025 at 09:55:21PM -0800, Christoph Hellwig wrote:
> > On Mon, Jan 13, 2025 at 08:40:51AM -0500, Brian Foster wrote:
...
>
> > I don't really have time to turn this hand waving into, but maybe we
> > should think if it's worthwhile or if I'm missing something important.
>
> If people are OK with XFS moving to exclusive buffered or DIO
> submission model, then I can find some time to work on the
> converting the IO path locking to use a two-state shared lock in
> preparation for the batched folio stuff that will allow concurrent
> buffered writes...
>

Ack to this, FWIW. I think this is a natural/logical approach,
prototyping and whatnot notwithstanding.

Brian

> -Dave.
> --
> Dave Chinner
> david@xxxxxxxxxxxxx
>