]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
block: add a bio_submit_or_kill helper
authorChristoph Hellwig <hch@lst.de>
Tue, 7 Apr 2026 14:05:27 +0000 (16:05 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 7 Apr 2026 14:22:24 +0000 (08:22 -0600)
commit92c3737a2473ff5b83f90f5c1b353a27492a10f2
tree755db0f54e219cf22eb6778d9d4f989ad34d5862
parent6fa747550e35f0a74e649b19d97055988a25b2e4
block: add a bio_submit_or_kill helper

Factor the common logic for the ioctl helpers to either submit a bio or
end if the process is being killed.  As this is now the only user of
bio_await_chain, open code that.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Link: https://patch.msgid.link/20260407140538.633364-5-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio.c
block/blk-lib.c
block/blk.h
block/ioctl.c