]> git.baikalelectronics.ru Git - kernel.git/commit
i40iw: Fix QP flush to not hang on empty queues or failure
authorShiraz Saleem <shiraz.saleem@intel.com>
Tue, 6 Dec 2016 21:49:31 +0000 (15:49 -0600)
committerDoug Ledford <dledford@redhat.com>
Mon, 12 Dec 2016 22:20:27 +0000 (17:20 -0500)
commit5dc5856266118e12fde6b2e8c0648257dc9cdda7
treeea0369d13cead018e0dd94d0b9bbd7bf30a58513
parentf35f145a45924ebaa8eb81e0a501a1d6f74634b5
i40iw: Fix QP flush to not hang on empty queues or failure

When flush QP and there are no pending work requests, signal completion
to unblock i40iw_drain_sq and i40iw_drain_rq which are waiting on
completion for iwqp->sq_drained and iwqp->sq_drained respectively.
Also, signal completion if flush QP fails to prevent the drain SQ or RQ
from being blocked indefintely.

Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/i40iw/i40iw.h
drivers/infiniband/hw/i40iw/i40iw_hw.c