Prepare for removal of the request pointer by using scsi_cmd_to_rq()
instead. This patch does not change any functionality.
Link: https://lore.kernel.org/r/20210809230355.8186-27-bvanassche@acm.org
Reviewed-by: John Garry <john.garry@huawei.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
 
        /* Bounce SCSI-initiated commands to the SCSI EH */
        if (qc->scsicmd) {
-               blk_abort_request(qc->scsicmd->request);
+               blk_abort_request(scsi_cmd_to_rq(qc->scsicmd));
                return;
        }
 
 
        if (dev_is_sata(task->dev))
                sas_ata_task_abort(task);
        else
-               blk_abort_request(sc->request);
+               blk_abort_request(scsi_cmd_to_rq(sc));
 }
 
 int sas_slave_alloc(struct scsi_device *sdev)