Skip to content

Commit

Permalink
IB/iser: Make fastreg pool cache friendly
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sagi Grimberg authored and Doug Ledford committed Apr 15, 2015
1 parent 4dec2a2 commit 8b95aa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/infiniband/ulp/iser/iser_memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 8b95aa2

Please sign in to comment.