]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
block: move bio queue-transition flag fixups into blk_steal_bios()
authorChaitanya Kulkarni <kch@nvidia.com>
Thu, 26 Feb 2026 03:12:42 +0000 (19:12 -0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 10 Mar 2026 13:11:09 +0000 (07:11 -0600)
commitb2c45ced591e6cf947560d2d290a51855926b774
treeeda5c74cec069ae659a312b425733d126059ade3
parent89d10b7803a6ab7276850e54b766487666667153
block: move bio queue-transition flag fixups into blk_steal_bios()

blk_steal_bios() transfers bios from a request to a bio_list when the
request is requeued to a different queue. The NVMe multipath failover
path (nvme_failover_req) currently open-codes clearing of REQ_POLLED,
bi_cookie, and REQ_NOWAIT on each bio before calling blk_steal_bios().

Move these fixups into blk_steal_bios() itself so that any caller
automatically gets correct flag state when bios cross queue boundaries.
Simplify nvme_failover_req() accordingly.

Signed-off-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://patch.msgid.link/20260226031243.87200-2-kch@nvidia.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c
drivers/nvme/host/multipath.c