Re: [PATCH 0/2] block: fail short atomic bounce bios in bio_iov_iter_bounce_write()

From: Christian Brauner

Date: Fri Nov 20 2026 - 04:04:50 EST


On Sat, Nov 07, 2026 at 11:24:34PM -0500, Tal Zussman wrote:
> bio_iov_iter_get_pages() fails a short REQ_ATOMIC bio. In contrast,
> bio_iov_iter_bounce_write() doesn't, so a bounced atomic write that runs
> into a folio allocation failure triggers a WARN_ON_ONCE() in
> iomap_dio_bio_iter_one().
>
> The first patch makes bio_iov_iter_bounce_write() also check that a
> REQ_ATOMIC bio covers the whole iterator, and clean up and return
> -EINVAL if it doesn't. With both paths covered the iomap check can't
> trigger, so the second patch removes it, as suggested by John Garry.
>
> ---

No objections per se, I just would like see Christoph take a look first.