IB/iser: Make fastreg pool cache friendly
authorSagi Grimberg <sagig@mellanox.com>
Tue, 14 Apr 2015 15:08:23 +0000 (18:08 +0300)
committerDoug Ledford <dledford@redhat.com>
Wed, 15 Apr 2015 20:07:13 +0000 (16:07 -0400)
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>
drivers/infiniband/ulp/iser/iser_memory.c

index 17a5d70dcc8a36df985867babbab344a556b01dd..45f512043ef52304a5ea901cf2de2410c7708c15 100644 (file)
@@ -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);
 }