]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
scsi: core: Retry I/O for Notify (Enable Spinup) Required error
authorQuat Le <quat.le@oracle.com>
Tue, 29 Jun 2021 15:58:26 +0000 (08:58 -0700)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 13 Aug 2021 07:31:42 +0000 (09:31 +0200)
commit8652f491dcbcad396223a127b33a04b703b823b3
tree013dc179d22e7495f07579423645cd93bbbf0251
parent9142fd70ab705979a55d26202615dedffb741ef3
scsi: core: Retry I/O for Notify (Enable Spinup) Required error

BugLink: https://bugs.launchpad.net/bugs/1938340
commit 104739aca4488909175e9e31d5cd7d75b82a2046 upstream.

If the device is power-cycled, it takes time for the initiator to transmit
the periodic NOTIFY (ENABLE SPINUP) SAS primitive, and for the device to
respond to the primitive to become ACTIVE. Retry the I/O request to allow
the device time to become ACTIVE.

Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20210629155826.48441-1-quat.le@oracle.com
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Quat Le <quat.le@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/scsi/scsi_lib.c