summaryrefslogtreecommitdiff
path: root/include/uapi/asm-generic/shmbuf.h
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2014-05-28 10:34:07 -0400
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2014-06-04 08:56:47 -0400
commitec62f40d3505a643497d105c297093bb90afd44e (patch)
tree32cb9abf5da170e58d6855d78cd4d6b5016c3652 /include/uapi/asm-generic/shmbuf.h
parent65866f8259851cea5e356d2fd46fc37a4e26330e (diff)
xprtrdma: Ensure ia->ri_id->qp is not NULL when reconnecting
Devesh Sharma <Devesh.Sharma@Emulex.Com> reports that after a disconnect, his HCA is failing to create a fresh QP, leaving ia_ri->ri_id->qp set to NULL. But xprtrdma still allows RPCs to wake up and post LOCAL_INV as they exit, causing an oops. rpcrdma_ep_connect() is allowing the wake-up by leaking the QP creation error code (-EPERM in this case) to the RPC client's generic layer. xprt_connect_status() does not recognize -EPERM, so it kills pending RPC tasks immediately rather than retrying the connect. Re-arrange the QP creation logic so that when it fails on reconnect, it leaves ->qp with the old QP rather than NULL. If pending RPC tasks wake and exit, LOCAL_INV work requests will flush rather than oops. On initial connect, leaving ->qp == NULL is OK, since there are no pending RPCs that might use ->qp. But be sure not to try to destroy a NULL QP when rpcrdma_ep_connect() is retried. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'include/uapi/asm-generic/shmbuf.h')
0 files changed, 0 insertions, 0 deletions