]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: core: Allow state transitions from OFFLINE to BLOCKED
authorHannes Reinecke <hare@suse.com>
Sun, 7 Oct 2018 08:35:35 +0000 (10:35 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 16 Oct 2018 03:53:29 +0000 (23:53 -0400)
commita51eb9f1edb1bda95a25575e839d5cbef0240644
tree82065a8ff7f13a8d7842dd0ac2bdb4b16fafe357
parent07522a83b2c2a4ffabf315a658e8ede6c0346c26
scsi: core: Allow state transitions from OFFLINE to BLOCKED

When an RSCN gets delayed (or not being sent at all), the transport class
will detect an error, EH kicks in, and eventually will be setting the
device to offline.  If we receive an RSCN after that, the device will
stay in 'offline'.  This patch allows for an 'offline' to 'blocked'
transition, thereby allowing the device to become active again.

Signed-off-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_lib.c