]> git.ipfire.org Git - thirdparty/linux.git/commit
block: add a bio_endio_status helper
authorChristoph Hellwig <hch@lst.de>
Thu, 28 May 2026 08:46:13 +0000 (10:46 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 28 May 2026 13:59:18 +0000 (07:59 -0600)
commita7d8eaee7fafe2e2c58aef9579bdef778c144029
treefd84b54114acba07c8131265dcee29addbac7cc1
parentf6fe52a7b18675d76d7f7dae0c16f412a4e33f9a
block: add a bio_endio_status helper

Add a helper that sets bi_status and call bio_endio() as that is a very
common pattern and convert the core block code over to it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Md Haris Iqbal <haris.iqbal@linux.dev>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Hannes Reinecke <hare@kernel.org>
Link: https://patch.msgid.link/20260528084632.2505277-1-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c
block/blk-crypto-fallback.c
block/blk-crypto.c
block/blk-merge.c
block/blk-mq.c
block/fops.c
include/linux/bio.h