linux/drivers/infiniband/ulp
Bart Van Assche 9294000d6d IB/srp: Drain the send queue before destroying a QP
A quote from the IB spec:

However, if the Consumer does not wait for the Affiliated Asynchronous
Last WQE Reached Event, then WQE and Data Segment leakage may occur.
Therefore, it is good programming practice to tear down a QP that is
associated with an SRQ by using the following process:
* Put the QP in the Error State;
* wait for the Affiliated Asynchronous Last WQE Reached Event;
* either:
  * drain the CQ by invoking the Poll CQ verb and either wait for CQ
    to be empty or the number of Poll CQ operations has exceeded CQ
    capacity size; or
  * post another WR that completes on the same CQ and wait for this WR to return as a WC;
* and then invoke a Destroy QP or Reset QP.

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Israel Rukshin <israelr@mellanox.com>
Cc: Max Gurtovoy <maxg@mellanox.com>
Cc: Laurence Oberman <loberman@redhat.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
2017-02-19 09:51:55 -05:00
..
ipoib IB/ipoib: Remove redudant label 2017-02-19 09:18:46 -05:00
iser IB/iser: Protect completion context active_qps update 2017-02-19 09:18:31 -05:00
isert IB/isert: fix spelling mistake: "teminating" -> "terminating" 2017-01-24 16:20:37 -05:00
srp IB/srp: Drain the send queue before destroying a QP 2017-02-19 09:51:55 -05:00
srpt IB/srpt: Accept GUIDs as port names 2017-01-27 14:31:50 -05:00
Makefile IB: Allow build of hw/ and ulp/ subdirectories independently 2014-06-02 14:51:12 -07:00