RDMA/cxgb4: Lock around accept/reject downcalls
authorSteve Wise <swise@opengridcomputing.com>
Fri, 21 Mar 2014 15:10:35 +0000 (20:40 +0530)
committerRoland Dreier <roland@purestorage.com>
Wed, 2 Apr 2014 15:52:45 +0000 (08:52 -0700)
commita7db89eb89cd6a444b16fdd602e818eed34d8222
tree0800a65ce5fd09476ab2d6c30d0a0cc2d4972772
parent9c88aa003d26e9f1e9ea6e08511768c2ef666654
RDMA/cxgb4: Lock around accept/reject downcalls

There is a race between ULP threads doing an accept/reject, and the
ingress processing thread handling close/abort for the same connection.
The accept/reject path needs to hold the lock to serialize these paths.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
[ Fold in locking fix found by Dan Carpenter <dan.carpenter@oracle.com>.
  - Roland ]

Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/cxgb4/cm.c