iw_cxgb4: handle draining an idle qp
authorSteve Wise <swise@opengridcomputing.com>
Tue, 12 Apr 2016 13:55:03 +0000 (06:55 -0700)
committerDoug Ledford <dledford@redhat.com>
Tue, 26 Apr 2016 16:46:54 +0000 (12:46 -0400)
commit40edd7fdfc8a2c838c313b982f318cd69e638750
tree63b76f49c560c213da6a8f7a3e4d858a64781bc1
parentad202348fe3fa8187c43af5ab5b86fe6de057bd3
iw_cxgb4: handle draining an idle qp

In c4iw_drain_sq/rq(), if the particular queue is already empty
then don't block.

Fixes: ce4af14d94aa ('iw_cxgb4: add queue drain functions')
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/cxgb4/qp.c