]> git.karo-electronics.de Git - karo-tx-linux.git/commit
RDMA/nes: Allocate work item for disconnect event handling
authorDon Wood <donald.e.wood@intel.com>
Sun, 6 Sep 2009 03:36:37 +0000 (20:36 -0700)
committerRoland Dreier <rolandd@cisco.com>
Sun, 6 Sep 2009 03:36:37 +0000 (20:36 -0700)
commit873fcdd4bfc75880888a7d148a71d70ed87c9ebf
treed64569366205a1c42be20806bb56e6b7885fe196
parentc4c3f279cd8e9cc1d3e2f364a27beadb2e69cda8
RDMA/nes: Allocate work item for disconnect event handling

The code currently has a work structure in the QP.  This requires a
lock and a pending flag to ensure there is never more than one request
active.  When two events happen quickly (such as FIN and LLP CLOSE),
it causes unnecessary timeouts since the second one is dropped.

This fix allocates memory for the work request so the second one can
be queued.  A lock is removed since it is no longer needed.

Signed-off-by: Don Wood <donald.e.wood@intel.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/nes/nes_cm.c
drivers/infiniband/hw/nes/nes_verbs.h