From: Don Wood Date: Sun, 6 Sep 2009 03:36:39 +0000 (-0700) Subject: RDMA/nes: Make poll_cq return correct number of wqes during flush X-Git-Tag: v2.6.32-rc1~736^2~1^8~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6eed5e7c8bdce6ee21bbe0be4a3f3dce4d4b392a;p=pandora-kernel.git 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 Signed-off-by: Roland Dreier --- Reading git-diff-tree failed