scsi: qlogicpti: 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-41-bvanassche@acm.org Signed-off-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
Родитель
924b3d7a3a
Коммит
ba4baf0951
|
@ -890,7 +890,7 @@ static inline void cmd_frob(struct Command_Entry *cmd, struct scsi_cmnd *Cmnd,
|
|||
cmd->control_flags |= CFLAG_WRITE;
|
||||
else
|
||||
cmd->control_flags |= CFLAG_READ;
|
||||
cmd->time_out = Cmnd->request->timeout/HZ;
|
||||
cmd->time_out = scsi_cmd_to_rq(Cmnd)->timeout / HZ;
|
||||
memcpy(cmd->cdb, Cmnd->cmnd, Cmnd->cmd_len);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче