Files
linux-stable-mirror/include/linux
Jens Axboe 9e6d70a910 block: cleanup and fix batch completion adding conditions
[ Upstream commit 1f47ed294a ]

The conditions for whether or not a request is allowed adding to a
completion batch are a bit hard to read, and they also have a few
issues. One is that ioerror may indeed be a random value on passthrough,
and it's being checked unconditionally of whether or not the given
request is a passthrough request or not.

Rewrite the conditions to be separate for easier reading, and only check
ioerror for non-passthrough requests. This fixes an issue with bio
unmapping on passthrough, where it fails getting added to a batch. This
both leads to suboptimal performance, and may trigger a potential
schedule-under-atomic condition for polled passthrough IO.

Fixes: f794f3351f ("block: add support for blk_mq_end_request_batch()")
Link: https://lore.kernel.org/r/20575f0a-656e-4bb3-9d82-dec6c7e3a35c@kernel.dk
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-02-21 14:01:21 +01:00
..
2024-12-05 14:01:23 +01:00
2025-01-09 13:33:32 +01:00
2024-12-14 20:03:35 +01:00
2024-10-01 17:01:40 +02:00
2025-02-01 18:39:37 +01:00
2025-02-08 09:57:11 +01:00
2025-01-17 13:40:50 +01:00
2025-02-08 09:57:23 +01:00
2025-02-08 09:57:10 +01:00
2025-02-08 09:58:16 +01:00
2025-01-23 17:22:53 +01:00
2025-02-01 18:39:35 +01:00