IB/cm: Do not automatically disconnect XRC TGT QPs
authorSean Hefty <sean.hefty@intel.com>
Tue, 31 May 2011 05:30:46 +0000 (22:30 -0700)
committerRoland Dreier <roland@purestorage.com>
Thu, 13 Oct 2011 16:42:06 +0000 (09:42 -0700)
commit2622e18ef407a8e8e3ddc3d6f0c77b756c493798
tree9efa00db02370ff8da639f83eb397f017fd94fe2
parent18c441a6c3741991bfb87a3c6c541d30f0eb9c7c
IB/cm: Do not automatically disconnect XRC TGT QPs

Because an XRC TGT QP can end up being shared among multiple
processes, don't have the ib_cm automatically send a DREQ when the
userspace process that owns the ib_cm_id exits.  Disconnect can be
initiated by the user directly; otherwise, the owner of the XRC INI QP
controls the connection.

Note that as a result of the process exiting, the ib_cm will stop
tracking the XRC connection on the target side.  For the purposes of
disconnecting, this isn't a big deal.  The ib_cm will respond to the
DREQ appropriately.  For other messages, mainly LAP, the CM will
reject the request, since there's no one available to route the
request to.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/core/cm.c