Message ID | 1636507412-21678-1-git-send-email-brookxu.cn@gmail.com |
---|---|
State | New |
Headers | show |
Series | [v2] scsi: core: use eh_timeout to timeout start_unit command | expand |
diff --git a/drivers/scsi/scsi_error.c b/drivers/scsi/scsi_error.c index a531336..a665318 100644 --- a/drivers/scsi/scsi_error.c +++ b/drivers/scsi/scsi_error.c @@ -1404,7 +1404,8 @@ static int scsi_eh_try_stu(struct scsi_cmnd *scmd) enum scsi_disposition rtn = NEEDS_RETRY; for (i = 0; rtn == NEEDS_RETRY && i < 2; i++) - rtn = scsi_send_eh_cmnd(scmd, stu_command, 6, scmd->device->request_queue->rq_timeout, 0); + rtn = scsi_send_eh_cmnd(scmd, stu_command, 6, + scmd->device->eh_timeout, 0); if (rtn == SUCCESS) return 0;