All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jason Gunthorpe <jgg@ziepe.ca>
To: Mike Marciniszyn <mike.marciniszyn@intel.com>
Cc: dledford@redhat.com, linux-rdma@vger.kernel.org
Subject: Re: [PATCH for-rc] IB/hfi1: Fix another case where pq is left on waitlist
Date: Wed, 6 May 2020 11:46:57 -0300	[thread overview]
Message-ID: <20200506144657.GA14279@ziepe.ca> (raw)
In-Reply-To: <20200504130917.175613.43231.stgit@awfm-01.aw.intel.com>

On Mon, May 04, 2020 at 09:09:17AM -0400, Mike Marciniszyn wrote:
> The commit noted below fixed a case where a pq is left on
> the sdma wait list.
> 
> It however missed another case.
> 
> user_sdma_send_pkts() has two calls from hfi1_user_sdma_process_request().
> 
> If the first one fails as indicated by -EBUSY, the pq will be placed on
> the waitlist as by design.
> 
> If the second call then succeeds, the pq is still on the waitlist
> setting up a race with the interrupt handler if a subsequent request uses
> a different SDMA engine
> 
> Fix by deleting the first call.
> 
> The use of pcount and the intent to send a short burst of packets followed
> by the larger balance of packets was never correctly implemented, because
> the two calls always send pcount packets no matter what.  A subsequent
> patch will correct that issue.
> 
> Fixes: 9a293d1e21a6 ("IB/hfi1: Ensure pq is not left on waitlist")
> Cc: <stable@vger.kernel.org>
> Reviewed-by: Kaike Wan <kaike.wan@intel.com>
> Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
> ---
>  drivers/infiniband/hw/hfi1/user_sdma.c |    4 ----
>  1 file changed, 4 deletions(-)

Applied to for-rc, thanks

Jason

      reply	other threads:[~2020-05-06 14:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-04 13:09 [PATCH for-rc] IB/hfi1: Fix another case where pq is left on waitlist Mike Marciniszyn
2020-05-06 14:46 ` Jason Gunthorpe [this message]

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=20200506144657.GA14279@ziepe.ca \
    --to=jgg@ziepe.ca \
    --cc=dledford@redhat.com \
    --cc=linux-rdma@vger.kernel.org \
    --cc=mike.marciniszyn@intel.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.