public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
From: "Nicholas A. Bellinger" <nab-IzHhD5pYlfBP7FQvKIMDCQ@public.gmane.org>
To: Bart Van Assche <bvanassche-HInyCGIudOg@public.gmane.org>
Cc: Roland Dreier <roland-BHEL68pLQRGGvPXPguhicg@public.gmane.org>,
	linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	Christoph Hellwig <hch-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
Subject: Re: [PATCH] ib_srpt: Fix Last WQE handling
Date: Mon, 07 Nov 2011 12:46:06 -0800	[thread overview]
Message-ID: <1320698766.30780.35.camel@haakon2.linux-iscsi.org> (raw)
In-Reply-To: <CAO+b5-pLv9PeO1E2kG7utsP4_rh49NfmPji2SVxBJQ2+OTZg4w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

On Mon, 2011-11-07 at 20:00 +0100, Bart Van Assche wrote:
> On Mon, Nov 7, 2011 at 7:10 PM, Roland Dreier <roland-BHEL68pLQRGGvPXPguhicg@public.gmane.org> wrote:
> > On Sun, Nov 6, 2011 at 9:31 AM, Bart Van Assche <bvanassche-HInyCGIudOg@public.gmane.org> wrote:
> >> Make sure that the last WQE event is handled properly if it arrives
> >> before the QP has been transitioned into the error state.
> >
> > Do you mean if the event arrives before the modify QP operation
> > returns?  If so I agree this is a possible order of events...
> >
> > Otherwise I'm not sure I follow: the last WQE event can't be
> > generated until the QP is in the error state (which of course
> > can happen before ib_modify_qp() returns)
> 
> The patch should be fine, but the description is not entirely correct:
> it should have been "... if it arrives before ib_modify_qp() has been
> invoked to transition the QP in the error state". Invoking
> ib_modify_qp() is not the only way via which a QP can reach the error
> state - transport errors can cause this too.
> 

Hi Bart,

This patch fails to compile with the following:

drivers/infiniband/ulp/srpt/ib_srpt.c: In function ‘srpt_perform_rdmas’:
drivers/infiniband/ulp/srpt/ib_srpt.c:2936: error: ‘CH_RELEASING’ undeclared (first use in this function)
drivers/infiniband/ulp/srpt/ib_srpt.c:2936: error: (Each undeclared identifier is reported only once
drivers/infiniband/ulp/srpt/ib_srpt.c:2936: error: for each function it appears in.)

I'm assuming this needs to be changed to CH_DRAINING instead, yes..?

Thanks,

--nab


--
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:[~2011-11-07 20:46 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-06 17:31 [PATCH] ib_srpt: Fix Last WQE handling Bart Van Assche
     [not found] ` <201111061831.17756.bvanassche-HInyCGIudOg@public.gmane.org>
2011-11-07 18:10   ` Roland Dreier
     [not found]     ` <CAL1RGDW+um6nT=K+0x4ibR41TeQZVcVvXH1ZS=32tx=Fp5ZtXg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-11-07 19:00       ` Bart Van Assche
     [not found]         ` <CAO+b5-pLv9PeO1E2kG7utsP4_rh49NfmPji2SVxBJQ2+OTZg4w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-11-07 20:46           ` Nicholas A. Bellinger [this message]
     [not found]             ` <1320698766.30780.35.camel-Y1+j5t8j3WgjMeEPmliV8E/sVC8ogwMJ@public.gmane.org>
2011-11-08  7:21               ` Bart Van Assche
     [not found]                 ` <CAO+b5-oJx3knOG+6ra3j-TtOuc9y0ueaCofLbwoB5=gcECJ=fA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-11-08 10:00                   ` Nicholas A. Bellinger
     [not found]                     ` <1320746408.30780.174.camel-Y1+j5t8j3WgjMeEPmliV8E/sVC8ogwMJ@public.gmane.org>
2011-11-08 11:24                       ` 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=1320698766.30780.35.camel@haakon2.linux-iscsi.org \
    --to=nab-izhhd5pylfbp7fqvkimdcq@public.gmane.org \
    --cc=bvanassche-HInyCGIudOg@public.gmane.org \
    --cc=hch-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=roland-BHEL68pLQRGGvPXPguhicg@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