Re: [PATCH] netfs: If didn't read new data then abandon retry
From: David Howells
Date: Fri Dec 13 2024 - 03:42:00 EST
Lizhi Xu <lizhi.xu@xxxxxxxxxxxxx> wrote:
> > (1) Replace NETFS_SREQ_NO_PROGRESS with NETFS_SREQ_MADE_PROGRESS and make
> > the filesystem set it if it managed to read or write at least one byte
> > of data. Clear this bit before issuing a subrequest.
> Will there be conflicts when reading and writing use the same flag to mark?
No, because, at the moment, a read done by a write (e.g. RMW with crypto) or a
write done by a read (e.g. writing just-read data to the cache) are handled
with an additional request structure since the set regions involved may differ
(RMW only needs read the unmodified ends for example).
David