block: add mq_ops->queue_rqs hook
authorJens Axboe <axboe@kernel.dk>
Fri, 3 Dec 2021 13:48:53 +0000 (06:48 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 16 Dec 2021 15:49:17 +0000 (08:49 -0700)
commit3c67d44de787dff288d7f2a51c372b22f7356db6
tree98a6604327a08c080282c6ca40d5e12783a8eb7d
parentfcade2ce06ffebee5c2f6629ddbf2086c0f5ba5a
block: add mq_ops->queue_rqs hook

If we have a list of requests in our plug list, send it to the driver in
one go, if possible. The driver must set mq_ops->queue_rqs() to support
this, if not the usual one-by-one path is used.

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