RDMA/nes: Make poll_cq return correct number of wqes during flush
authorDon Wood <donald.e.wood@intel.com>
Sun, 6 Sep 2009 03:36:39 +0000 (20:36 -0700)
committerRoland Dreier <rolandd@cisco.com>
Sun, 6 Sep 2009 03:36:39 +0000 (20:36 -0700)
commit6eed5e7c8bdce6ee21bbe0be4a3f3dce4d4b392a
treef9b6dc7cef73fb401acbb3b04947fe8b527d7a50
parent4b281faec3ad00f7fb00080078321e4d819795eb
RDMA/nes: Make poll_cq return correct number of wqes during flush

When a flush request is given to the hw, it will place one cqe marked
as flushed (unless there is nothing to flush).  An application that is
waiting for all wqe's to complete will be left hanging.  This modifies
poll_cq to return the correct number of flushes for the pending
elements on the wq.

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