diff options
author | Sagi Grimberg <sagig@mellanox.com> | 2015-04-14 18:08:23 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2015-04-15 23:07:13 +0300 |
commit | 8b95aa2c1bf8c936e5b0e9096b180a3e4f5327ff (patch) | |
tree | 29737d4a93d2fe406b9f3ad2e3a5507a8899d5d7 /drivers/infiniband | |
parent | 4dec2a27e385ac753d754af69f344625f5c50576 (diff) | |
download | linux-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/infiniband')
-rw-r--r-- | drivers/infiniband/ulp/iser/iser_memory.c | 2 |
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 17a5d70dcc8a..45f512043ef5 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); } |