block: add support for blk_mq_end_request_batch()
authorJens Axboe <axboe@kernel.dk>
Fri, 8 Oct 2021 11:50:46 +0000 (05:50 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Oct 2021 20:40:43 +0000 (14:40 -0600)
commitf794f3351f2672d782b8df0fa59f3cef38cffa59
treed5785ccc1b70bb476e54f459883d3d5090b4d176
parent1aec5e4a2962f7e0b3fb3e7308dd726be2472c26
block: add support for blk_mq_end_request_batch()

Instead of calling blk_mq_end_request() on a single request, add a helper
that takes the new struct io_comp_batch and completes any request stored
in there.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq-tag.c
block/blk-mq-tag.h
block/blk-mq.c
include/linux/blk-mq.h