scsi: libsas: Use scsi_cmd_to_rq() instead of scsi_cmnd.request
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>
This commit is contained in:
Родитель
240ec11977
Коммит
cad1a780e0
|
@ -596,7 +596,7 @@ void sas_ata_task_abort(struct sas_task *task)
|
|||
|
||||
/* 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;
|
||||
}
|
||||
|
||||
|
|
|
@ -908,7 +908,7 @@ void sas_task_abort(struct sas_task *task)
|
|||
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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче