]> git.baikalelectronics.ru Git - kernel.git/commit
IB/core: Don't drain non-existent rq queue-pair
authorSagi Grimberg <sagi@grimberg.me>
Tue, 26 Apr 2016 14:55:38 +0000 (17:55 +0300)
committerDoug Ledford <dledford@redhat.com>
Tue, 26 Apr 2016 16:40:50 +0000 (12:40 -0400)
commitc7a1f8f1d7f3fddd141b024e2dce55b97d117bfa
tree6c268d22e51a547ce9d145125368e18d36556cb3
parent952231b51221f95333c1d3b03d8c15e0dd2a5b37
IB/core: Don't drain non-existent rq queue-pair

The drain_rq function expects a normal receive qp to drain.  A qp can
only have either a normal rq or an srq.  If there is an srq, there
is no rq to drain.  Until the API supports draining SRQs, simply
skip draining the rq when the qp has an srq attached.

Fixes: db25f9104f9e ("IB: new common API for draining queues")
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/verbs.c