diff options
author | Bart Van Assche <bart.vanassche@sandisk.com> | 2017-06-20 20:15:42 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2017-06-21 03:27:14 +0200 |
commit | c8d9cf22cf0f89d1249a57ade5a1949c62075ce6 (patch) | |
tree | 34427e408f352b041ddd2d2c8c4223ed54429593 /drivers/scsi/scsi_lib.c | |
parent | block: Make most scsi_req_init() calls implicit (diff) | |
download | linux-c8d9cf22cf0f89d1249a57ade5a1949c62075ce6.tar.xz linux-c8d9cf22cf0f89d1249a57ade5a1949c62075ce6.zip |
block: Change argument type of scsi_req_init()
Since scsi_req_init() works on a struct scsi_request, change the
argument type into struct scsi_request *.
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/scsi/scsi_lib.c')
-rw-r--r-- | drivers/scsi/scsi_lib.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c index 301a7f706c9a..550e29f903b7 100644 --- a/drivers/scsi/scsi_lib.c +++ b/drivers/scsi/scsi_lib.c @@ -1123,7 +1123,9 @@ EXPORT_SYMBOL(scsi_init_io); */ void scsi_initialize_rq(struct request *rq) { - scsi_req_init(rq); + struct scsi_cmnd *cmd = blk_mq_rq_to_pdu(rq); + + scsi_req_init(&cmd->req); } EXPORT_SYMBOL(scsi_initialize_rq); |