Re: [PATCH] IB/srp: Fail I/O requests if the transport is offline

2013-02-24 Thread Bart Van Assche
On 02/18/13 09:11, Sagi Grimberg wrote: On 2/18/2013 6:06 AM, David Dillow wrote: On Fri, 2013-02-15 at 10:39 +0100, Bart Van Assche wrote: diff --git a/drivers/infiniband/ulp/srp/ib_srp.c b/drivers/infiniband/ulp/srp/ib_srp.c index 8a7eb9f..b34752d 100644 ---

Re: [PATCH] IB/srp: Fail I/O requests if the transport is offline

2013-02-24 Thread Sagi Grimberg
On 2/24/2013 10:09 AM, Bart Van Assche wrote: On 02/18/13 09:11, Sagi Grimberg wrote: On 2/18/2013 6:06 AM, David Dillow wrote: On Fri, 2013-02-15 at 10:39 +0100, Bart Van Assche wrote: diff --git a/drivers/infiniband/ulp/srp/ib_srp.c b/drivers/infiniband/ulp/srp/ib_srp.c index

Re: [PATCH] IB/srp: Fail I/O requests if the transport is offline

2013-02-24 Thread Or Gerlitz
On Sun, Feb 24, 2013 at 10:59 AM, Sagi Grimberg sa...@mellanox.com wrote: On 2/24/2013 10:09 AM, Bart Van Assche wrote: On 02/18/13 09:11, Sagi Grimberg wrote: On 2/18/2013 6:06 AM, David Dillow wrote: Or, Vu, does this solve the issue you've seen? I may have time to test later this week,

Re: [PATCH] IB/srp: Fail I/O requests if the transport is offline

2013-02-21 Thread Bart Van Assche
On 02/18/13 05:06, David Dillow wrote: On Fri, 2013-02-15 at 10:39 +0100, Bart Van Assche wrote: diff --git a/drivers/infiniband/ulp/srp/ib_srp.c b/drivers/infiniband/ulp/srp/ib_srp.c index 8a7eb9f..b34752d 100644 --- a/drivers/infiniband/ulp/srp/ib_srp.c +++

Re: [PATCH] IB/srp: Fail I/O requests if the transport is offline

2013-02-18 Thread Sagi Grimberg
On 2/18/2013 6:06 AM, David Dillow wrote: On Fri, 2013-02-15 at 10:39 +0100, Bart Van Assche wrote: diff --git a/drivers/infiniband/ulp/srp/ib_srp.c b/drivers/infiniband/ulp/srp/ib_srp.c index 8a7eb9f..b34752d 100644 --- a/drivers/infiniband/ulp/srp/ib_srp.c +++

Re: [PATCH] IB/srp: Fail I/O requests if the transport is offline

2013-02-17 Thread David Dillow
On Fri, 2013-02-15 at 10:39 +0100, Bart Van Assche wrote: diff --git a/drivers/infiniband/ulp/srp/ib_srp.c b/drivers/infiniband/ulp/srp/ib_srp.c index 8a7eb9f..b34752d 100644 --- a/drivers/infiniband/ulp/srp/ib_srp.c +++ b/drivers/infiniband/ulp/srp/ib_srp.c @@ -734,6 +734,7 @@ static int

[PATCH] IB/srp: Fail I/O requests if the transport is offline

2013-02-15 Thread Bart Van Assche
If an SRP target is no longer reachable and srp_reset_host() fails to reconnect then ib_srp will invoke scsi_remove_host(). That function will invoke __scsi_remove_device() for each LUN. And that last function will change the device state from SDEV_TRANSPORT_OFFLINE into SDEV_CANCEL. Certain user