Skip to content

Commit

Permalink
IB/srpt: Detect session shutdown reliably
Browse files Browse the repository at this point in the history
The Last WQE Reached event is only generated after one or more work
requests have been queued on the QP associated with a session. Since
session shutdown can start before any work requests have been queued,
use a zero-length RDMA write to wait until a QP has been drained.

Additionally, rework the code for closing and disconnecting a session.

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Cc: Sagi Grimberg <sagig@mellanox.com>
Cc: Alex Estrin <alex.estrin@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
  • Loading branch information
Bart Van Assche authored and dledford committed Feb 29, 2016
1 parent 8628991 commit aaf45bd
Show file tree
Hide file tree
Showing 2 changed files with 150 additions and 150 deletions.
Loading

0 comments on commit aaf45bd

Please sign in to comment.