block: add request polling helper
authorKeith Busch <kbusch@kernel.org>
Mon, 12 Jun 2023 19:03:42 +0000 (12:03 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 28 Jun 2023 22:09:41 +0000 (16:09 -0600)
commitf6c80cffcd47a2d41943e3a41fbe9034d9f6d7b0
tree687fe310b1cd478cd2289f20dfb9aa1fe9279c1b
parent3a08284ff22080e742814dad1dbabb4b66349642
block: add request polling helper

Provide a direct request polling will for drivers. The interface does
not require a bio, and can skip the overhead associated with polling
those. The biggest gain from skipping the relatively expensive xarray
lookup unnecessary when you already have the request.

With this, the simple rq/qc conversion functions have only one caller
each, so open code this and remove the helpers.

Signed-off-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Kanchan Joshi <joshi.k@samsung.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20230612190343.2087040-2-kbusch@meta.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c
include/linux/blk-mq.h