Messages in this thread | | | From | Linus Torvalds <> | Date | Fri, 15 Sep 2023 17:15:53 -0700 | Subject | Re: [PATCH 02/17] iomap: Protect read_bytes_pending with the state_lock |
| |
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
| |