OSDN Git Service

scsi: blk-mq: Add callbacks for storing & retrieving budget token
authorMing Lei <ming.lei@redhat.com>
Fri, 22 Jan 2021 02:33:11 +0000 (10:33 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 4 Mar 2021 22:36:59 +0000 (17:36 -0500)
commitd022d18c045fc2ccf92d0f14cf80f98eb0a8e119
tree7088d1e6e3b1e9c37a75650be2c201be82f25277
parent2d13b1ea9f4affdaa7af0e0e4a1358d28f80c54f
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/20210122023317.687987-8-ming.lei@redhat.com
Cc: Omar Sandoval <osandov@fb.com>
Cc: Kashyap Desai <kashyap.desai@broadcom.com>
Cc: Sumanesh Samanta <sumanesh.samanta@broadcom.com>
Cc: Ewan D. Milne <emilne@redhat.com>
Cc: Hannes Reinecke <hare@suse.de>
Tested-by: Sumanesh Samanta <sumanesh.samanta@broadcom.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_lib.c
include/linux/blk-mq.h
include/scsi/scsi_cmnd.h