From: Eli Cohen Date: Tue, 6 Mar 2012 13:50:51 +0000 (+0200) Subject: IB/mlx4: Fix possible missed completion event X-Git-Tag: v3.4-rc1~169^2~1^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3616f9cead935d4e4c35915600d5e4d1384219cd;p=pandora-kernel.git IB/mlx4: Fix possible missed completion event If an erroneous CQE is polled in the first iteration (i.e. npolled == 0), we don't update the consumer index and hence the hardware could get a wrong notion of how many CQEs software polled. Fix this by unconditionally updating the doorbell record. We could change the check to be something like if (npolled || err != -EAGAIN) ... but it does not seem worth the effort since a posted write to memory should not cost too much. Signed-off-by: Eli Cohen Signed-off-by: Roland Dreier --- Reading git-diff-tree failed