scsi: virtio_scsi: Convert to scsi_execute_cmd()
authorMike Christie <michael.christie@oracle.com>
Thu, 29 Dec 2022 19:01:51 +0000 (13:01 -0600)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 14 Jan 2023 02:34:09 +0000 (21:34 -0500)
scsi_execute_req() is going to be removed. Convert virtio_scsi to
scsi_execute_cmd().

Signed-off-by: Mike Christie <michael.christie@oracle.com>
Reviewed-by: John Garry <john.g.garry@oracle.com>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/virtio_scsi.c

index d07d24c06b546fcd28ef93847689fed3e4431fb3..b221c3c99320b1b4465bc5c0322f93d8c073a159 100644 (file)
@@ -347,8 +347,8 @@ static void virtscsi_rescan_hotunplug(struct virtio_scsi *vscsi)
 
                memset(inq_result, 0, inq_result_len);
 
-               result = scsi_execute_req(sdev, scsi_cmd, DMA_FROM_DEVICE,
-                                         inq_result, inquiry_len, NULL,
+               result = scsi_execute_cmd(sdev, scsi_cmd, REQ_OP_DRV_IN,
+                                         inq_result, inquiry_len,
                                          SD_TIMEOUT, SD_MAX_RETRIES, NULL);
 
                if (result == 0 && inq_result[0] >> 5) {