summaryrefslogtreecommitdiff
path: root/drivers/infiniband/ulp/isert/ib_isert.h
diff options
context:
space:
mode:
authorSagi Grimberg <sagig@mellanox.com>2014-12-02 16:57:45 +0200
committerNicholas Bellinger <nab@linux-iscsi.org>2014-12-12 23:32:32 -0800
commit36ea63b523f3f3b57f708f14af848cac100677d5 (patch)
tree0b0078eb6547ab90a215dd0eb196c65c09316f46 /drivers/infiniband/ulp/isert/ib_isert.h
parent37d9fe80a3afc87a3d9f3d83aa0e6137f9fd7cde (diff)
iser-target: Reduce CQ lock contention by batch polling
In order to reduce the contention on CQ locking (present in some LLDDs) we poll in batches of 16 work completion items. Signed-off-by: Sagi Grimberg <sagig@mellanox.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/infiniband/ulp/isert/ib_isert.h')
-rw-r--r--drivers/infiniband/ulp/isert/ib_isert.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/ulp/isert/ib_isert.h b/drivers/infiniband/ulp/isert/ib_isert.h
index fc1d3232f896..2a0721f1f5df 100644
--- a/drivers/infiniband/ulp/isert/ib_isert.h
+++ b/drivers/infiniband/ulp/isert/ib_isert.h
@@ -165,6 +165,7 @@ struct isert_conn {
*
* @device: pointer to device handle
* @cq: completion queue
+ * @wcs: work completion array
* @active_qps: Number of active QPs attached
* to completion context
* @work: completion work handle
@@ -172,6 +173,7 @@ struct isert_conn {
struct isert_comp {
struct isert_device *device;
struct ib_cq *cq;
+ struct ib_wc wcs[16];
int active_qps;
struct work_struct work;
};