From: Selvin Xavier Date: Tue, 10 Jun 2014 14:02:19 +0000 (+0530) Subject: RDMA/ocrdma: Avoid reporting wrong completions in case of error CQEs X-Git-Tag: omap-for-v3.17/fixes-against-rc2~62^2^10~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a96ffb1de9d656ce7083277a8badaa1082813498;p=pandora-kernel.git RDMA/ocrdma: Avoid reporting wrong completions in case of error CQEs During cable pull test with a mount over NFS/RDMA, the driver was reporting error completions when there were no pending requests in the SQ and RQ. This was triggering a host crash because of reporting wrong work req id. Avoid this crash by adding a check for SQ and RQ empty condition and prevent reporting completions if queues are empty. Signed-off-by: Selvin Xavier Signed-off-by: Devesh Sharma Signed-off-by: Roland Dreier --- Reading git-diff-tree failed