aboutsummaryrefslogtreecommitdiff
path: root/block/blk-cgroup-rwstat.c
diff options
context:
space:
mode:
authorJens Axboe2023-01-16 08:55:53 -0700
committerGreg Kroah-Hartman2023-03-10 09:34:02 +0100
commit1796bc1e4499cedb3ba61c1068130d19ebae0b44 (patch)
treec7b3d3010bcc9328f140c0190cb7cd351dfa2492 /block/blk-cgroup-rwstat.c
parent0407aeed3501619ba166d8521b356063eb617a9a (diff)
block: don't allow multiple bios for IOCB_NOWAIT issue
commit 67d59247d4b52c917e373f05a807027756ab216f upstream. If we're doing a large IO request which needs to be split into multiple bios for issue, then we can run into the same situation as the below marked commit fixes - parts will complete just fine, one or more parts will fail to allocate a request. This will result in a partially completed read or write request, where the caller gets EAGAIN even though parts of the IO completed just fine. Do the same for large bios as we do for splits - fail a NOWAIT request with EAGAIN. This isn't technically fixing an issue in the below marked patch, but for stable purposes, we should have either none of them or both. This depends on: 613b14884b85 ("block: handle bio_split_to_limits() NULL return") Cc: stable@vger.kernel.org # 5.15+ Fixes: 9cea62b2cbab ("block: don't allow splitting of a REQ_NOWAIT bio") Link: https://github.com/axboe/liburing/issues/766 Reported-and-tested-by: Michael Kelley <mikelley@microsoft.com> Signed-off-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'block/blk-cgroup-rwstat.c')
0 files changed, 0 insertions, 0 deletions