summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorSagi Grimberg <sagig@mellanox.com>2015-04-14 15:08:23 (GMT)
committerDoug Ledford <dledford@redhat.com>2015-04-15 20:07:13 (GMT)
commit8b95aa2c1bf8c936e5b0e9096b180a3e4f5327ff (patch)
tree29737d4a93d2fe406b9f3ad2e3a5507a8899d5d7 /drivers
parent4dec2a27e385ac753d754af69f344625f5c50576 (diff)
downloadlinux-8b95aa2c1bf8c936e5b0e9096b180a3e4f5327ff.tar.xz
IB/iser: Make fastreg pool cache friendly
Memory regions are resources that are saved in the device caches. Increase the probability for a cache hit by adding the MRU descriptor to pool head. Signed-off-by: Sagi Grimberg <sagig@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/infiniband/ulp/iser/iser_memory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/ulp/iser/iser_memory.c b/drivers/infiniband/ulp/iser/iser_memory.c
index 17a5d70..45f5120 100644
--- a/drivers/infiniband/ulp/iser/iser_memory.c
+++ b/drivers/infiniband/ulp/iser/iser_memory.c
@@ -63,7 +63,7 @@ iser_reg_desc_put(struct ib_conn *ib_conn,
unsigned long flags;
spin_lock_irqsave(&ib_conn->lock, flags);
- list_add_tail(&desc->list, &ib_conn->fastreg.pool);
+ list_add(&desc->list, &ib_conn->fastreg.pool);
spin_unlock_irqrestore(&ib_conn->lock, flags);
}