mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02:00
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>
This commit is contained in:
@@ -492,6 +492,14 @@ struct blk_mq_ops {
|
||||
*/
|
||||
void (*commit_rqs)(struct blk_mq_hw_ctx *);
|
||||
|
||||
/**
|
||||
* @queue_rqs: Queue a list of new requests. Driver is guaranteed
|
||||
* that each request belongs to the same queue. If the driver doesn't
|
||||
* empty the @rqlist completely, then the rest will be queued
|
||||
* individually by the block layer upon return.
|
||||
*/
|
||||
void (*queue_rqs)(struct request **rqlist);
|
||||
|
||||
/**
|
||||
* @get_budget: Reserve budget before queue request, once .queue_rq is
|
||||
* run, it is driver's responsibility to release the
|
||||
|
Reference in New Issue
Block a user