OSDN Git Service

IB/cq: Don't force IB_POLL_DIRECT poll context for ib_process_cq_direct
authorSagi Grimberg <sagi@grimberg.me>
Sun, 14 Jan 2018 15:07:50 +0000 (17:07 +0200)
committerDoug Ledford <dledford@redhat.com>
Thu, 18 Jan 2018 19:49:20 +0000 (14:49 -0500)
commit246d8b184c100e8eb6b4e8c88f232c2ed2a4e672
tree1d1ff97ce54a7a454375270619e8959488c1744c
parentaaebd377c0e9c75bc95217b924e4456a392c65ed
IB/cq: Don't force IB_POLL_DIRECT poll context for ib_process_cq_direct

polling the completion queue directly does not interfere
with the existing polling logic, hence drop the requirement.
Be aware that running ib_process_cq_direct with non IB_POLL_DIRECT
CQ may trigger concurrent CQ processing.

This can be used for polling mode ULPs.

Cc: Bart Van Assche <bart.vanassche@wdc.com>
Reported-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
[maxg: added wcs array argument to __ib_process_cq]
Signed-off-by: Max Gurtovoy <maxg@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/cq.c