Re: [PATCH v12 6/6] Avoid re-enabling I/O after the transport became offline

2013-07-01 Thread Hannes Reinecke
On 07/01/2013 02:05 PM, Bart Van Assche wrote: > On 07/01/13 10:27, Hannes Reinecke wrote: >> On 06/27/2013 04:57 PM, Bart Van Assche wrote: >>> diff --git a/drivers/scsi/scsi_sysfs.c b/drivers/scsi/scsi_sysfs.c >>> index dfbaa34..666b741 100644 >>> --- a/drivers/scsi/scsi_sysfs.c >>> +++ b/drivers

Re: [PATCH v12 6/6] Avoid re-enabling I/O after the transport became offline

2013-07-01 Thread Bart Van Assche
On 07/01/13 10:27, Hannes Reinecke wrote: > On 06/27/2013 04:57 PM, Bart Van Assche wrote: >> diff --git a/drivers/scsi/scsi_sysfs.c b/drivers/scsi/scsi_sysfs.c >> index dfbaa34..666b741 100644 >> --- a/drivers/scsi/scsi_sysfs.c >> +++ b/drivers/scsi/scsi_sysfs.c >> @@ -959,14 +959,16 @@ void __scs

Re: [PATCH v12 6/6] Avoid re-enabling I/O after the transport became offline

2013-07-01 Thread Hannes Reinecke
On 06/27/2013 04:57 PM, Bart Van Assche wrote: > Disallow the SDEV_TRANSPORT_OFFLINE to SDEV_CANCEL transition such > that no I/O is sent to devices for which the transport is offline. > Notes: > - Functions like sd_shutdown() use scsi_execute_req() and hence > set the REQ_PREEMPT flag. Such requ

[PATCH v12 6/6] Avoid re-enabling I/O after the transport became offline

2013-06-27 Thread Bart Van Assche
Disallow the SDEV_TRANSPORT_OFFLINE to SDEV_CANCEL transition such that no I/O is sent to devices for which the transport is offline. Notes: - Functions like sd_shutdown() use scsi_execute_req() and hence set the REQ_PREEMPT flag. Such requests are passed to the LLD queuecommand callback in the