linux-rdma.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Bart Van Assche <bvanassche-HInyCGIudOg@public.gmane.org>
To: Sagi Grimberg <sagig-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
Cc: David Dillow <dave-i1Mk8JYDVaaSihdK6806/g@public.gmane.org>,
	Vu Pham <vu-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>,
	Or Gerlitz <or.gerlitz-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	Roland Dreier <roland-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
	"linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	Or Gerlitz <ogerlitz-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
Subject: Re: [PATCH] IB/srp: Fail I/O requests if the transport is offline
Date: Sun, 24 Feb 2013 09:09:26 +0100	[thread overview]
Message-ID: <5129CAB6.5030506@acm.org> (raw)
In-Reply-To: <5121E217.3080003-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>

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
>>> --- a/drivers/infiniband/ulp/srp/ib_srp.c
>>> +++ b/drivers/infiniband/ulp/srp/ib_srp.c
>>> @@ -734,6 +734,7 @@ static int srp_reconnect_target(struct
>>> srp_target_port *target)
>>>       scsi_target_unblock(&shost->shost_gendev, ret == 0 ?
>>> SDEV_RUNNING :
>>>                   SDEV_TRANSPORT_OFFLINE);
>>> +    target->transport_offline = ret != 0;
>> Minor nit, that line is hard to read; I keep thinking it needs parens
>> around the conditional...
>>
>> Perhaps
>>     target->transport_offline = !!ret;
>> or
>>     target->transport_offline = ret;
>>
>> gcc should do the right conversion since we're assigning to a bool.
>>
>>
>> Or, Vu, does this solve the issue you've seen? I may have time to test
>> later this week, but not before.
>
> This indeed solve scsi_host removal issues.
> Vu is on vacation, I'll perform some more failover tests...

Hello Sagi,

Since no further feedback was posted on the list I assume that means 
that all tests passed ?

Bart.

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2013-02-24  8:09 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-01 15:18 [PATCH for 3.8 v3, resend 0/3] IB/SRP patches for kernel 3.8 Bart Van Assche
     [not found] ` <510BDCAA.204-HInyCGIudOg@public.gmane.org>
2013-02-01 15:18   ` [PATCH for 3.8 v3, resend 1/3] IB/srp: Track connection state properly Bart Van Assche
2013-02-01 15:19   ` [PATCH for 3.8 v3, resend 2/3] IB/srp: Avoid sending a task management function needlessly Bart Van Assche
2013-02-01 15:21   ` [PATCH for 3.8 v3, resend 3/3] IB/srp: Avoid endless SCSI error handling loop Bart Van Assche
2013-02-04 21:11   ` [PATCH for 3.8 v3, resend 0/3] IB/SRP patches for kernel 3.8 Or Gerlitz
     [not found]     ` <CAJZOPZLKQV0QvrW5sK8hQJf7AZc+1nUzp+5YCkZ3iVU4oTWbLg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-02-05 16:25       ` Bart Van Assche
     [not found]         ` <5111327F.6050402-HInyCGIudOg@public.gmane.org>
2013-02-05 20:54           ` Or Gerlitz
     [not found]             ` <CAJZOPZ+-Zg=jnqg4ZmFL5Yo4_2DoWGcgy=3u6g3Rf9y80pXnpg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-02-06  7:22               ` Bart Van Assche
     [not found]                 ` <5112049B.8030406-HInyCGIudOg@public.gmane.org>
2013-02-06  7:44                   ` Or Gerlitz
     [not found]                     ` <511209E5.1010807-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2013-02-06  7:59                       ` Bart Van Assche
     [not found]                         ` <51120D4F.2070102-HInyCGIudOg@public.gmane.org>
2013-02-06  8:25                           ` Or Gerlitz
2013-02-06 21:42                   ` Vu Pham
     [not found]                     ` <5112CE60.2030607-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2013-02-07  9:05                       ` Bart Van Assche
     [not found]                         ` <51136E74.9090209-HInyCGIudOg@public.gmane.org>
2013-02-07  9:41                           ` Or Gerlitz
     [not found]                             ` <511376C2.6050100-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2013-02-07 10:15                               ` Bart Van Assche
2013-02-07 18:20                           ` Vu Pham
     [not found]                             ` <5113F056.4020501-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2013-02-15  9:39                               ` [PATCH] IB/srp: Fail I/O requests if the transport is offline Bart Van Assche
     [not found]                                 ` <511E024E.70002-HInyCGIudOg@public.gmane.org>
2013-02-18  4:06                                   ` David Dillow
     [not found]                                     ` <1361160385.7415.2.camel-1q1vX8mYZiGLUyTwlgNVppKKF0rrzTr+@public.gmane.org>
2013-02-18  8:11                                       ` Sagi Grimberg
     [not found]                                         ` <5121E217.3080003-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2013-02-24  8:09                                           ` Bart Van Assche [this message]
     [not found]                                             ` <5129CAB6.5030506-HInyCGIudOg@public.gmane.org>
2013-02-24  8:59                                               ` Sagi Grimberg
     [not found]                                                 ` <5129D665.3070206-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2013-02-24 14:42                                                   ` Or Gerlitz
2013-02-21 16:10                                       ` Bart Van Assche

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5129CAB6.5030506@acm.org \
    --to=bvanassche-hinycgiudog@public.gmane.org \
    --cc=dave-i1Mk8JYDVaaSihdK6806/g@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=ogerlitz-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org \
    --cc=or.gerlitz-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=roland-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=sagig-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org \
    --cc=vu-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).