Re: [PATCH 1/3] scsi: Allow state transitions from OFFLINE to BLOCKED

2018-10-08 Thread Hannes Reinecke
On 10/8/18 10:22 PM, Ewan D. Milne wrote: This change would permit a device that was OFFLINE (for any reason) to go back to RUNNING via: OFFLINE -> BLOCKED -> RUNNING Correct. Obviously that was your intention, but e.g. if a device was put OFFLINE due to exceeding max_medium_access_timeouts

Re: [PATCH 1/3] scsi: Allow state transitions from OFFLINE to BLOCKED

2018-10-08 Thread Ewan D. Milne
This change would permit a device that was OFFLINE (for any reason) to go back to RUNNING via: OFFLINE -> BLOCKED -> RUNNING Obviously that was your intention, but e.g. if a device was put OFFLINE due to exceeding max_medium_access_timeouts a fabric event and recovery would put it back online. S

[PATCH 1/3] scsi: Allow state transitions from OFFLINE to BLOCKED

2018-10-07 Thread Hannes Reinecke
From: Hannes Reinecke 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 'blocke