mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00: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:
parent
fcade2ce06
commit
3c67d44de7
2 changed files with 31 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue