[PATCH 3/4] Avoid re-enabling I/O after the transport became offline

2013-07-02 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

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

2013-07-02 Thread James Bottomley
On Tue, 2013-07-02 at 15:07 +0200, 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.