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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Apr 2018 09:02:07 +0000 (11:02 +0200)
commit35ceddc59cd4f70343072247fd5b9995d8fceb87
tree580db4a253e083ccbc3a86302673d9c5dca62de9
parent58bc0fd8434d510c5e86f6739c9856b695730504
IB/cq: Don't force IB_POLL_DIRECT poll context for ib_process_cq_direct

[ Upstream commit 246d8b184c100e8eb6b4e8c88f232c2ed2a4e672 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/core/cq.c