aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorMing Lei <[email protected]>2021-01-22 10:33:11 +0800
committerMartin K. Petersen <[email protected]>2021-03-04 17:36:59 -0500
commitd022d18c045fc2ccf92d0f14cf80f98eb0a8e119 (patch)
tree7088d1e6e3b1e9c37a75650be2c201be82f25277 /include/linux
parent2d13b1ea9f4affdaa7af0e0e4a1358d28f80c54f (diff)
scsi: blk-mq: Add callbacks for storing & retrieving budget token
Since SCSI is the only driver which requires dispatch budget move the token from struct request to struct scsi_cmnd. Link: https://lore.kernel.org/r/[email protected] Cc: Omar Sandoval <[email protected]> Cc: Kashyap Desai <[email protected]> Cc: Sumanesh Samanta <[email protected]> Cc: Ewan D. Milne <[email protected]> Cc: Hannes Reinecke <[email protected]> Tested-by: Sumanesh Samanta <[email protected]> Reviewed-by: Hannes Reinecke <[email protected]> Signed-off-by: Ming Lei <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/blk-mq.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/blk-mq.h b/include/linux/blk-mq.h
index 2c473c9b8990..5fae401f083d 100644
--- a/include/linux/blk-mq.h
+++ b/include/linux/blk-mq.h
@@ -313,6 +313,15 @@ struct blk_mq_ops {
*/
void (*put_budget)(struct request_queue *);
+ /*
+ * @set_rq_budget_toekn: store rq's budget token
+ */
+ void (*set_rq_budget_token)(struct request *, int);
+ /*
+ * @get_rq_budget_toekn: retrieve rq's budget token
+ */
+ int (*get_rq_budget_token)(struct request *);
+
/**
* @timeout: Called on request timeout.
*/