Re: [PATCH 02/17] iomap: Protect read_bytes_pending with the state_lock

Linus Torvalds
2023-09-16T00:24:44Z

On Fri, 15 Sept 2023 at 17:11, Linus Torvalds
<torvalds@linux-foundation.org> wrote:
>
[...]
> if (unlikely(error))
> folio_set_error(folio);
> else if (uptodate)
> folio_mark_uptodate(folio);
> if (finished)
> folio_unlock(folio);
> }

Note that this then becomes

if (unlikely(error))
folio_set_error(folio);
if (finished)
folio_unlock(folio, uptodate && !error);
}

but that change would happen later, in patch 6/17.

Linus