IB/hfi1: Add cache evict LRU list
authorDean Luick <dean.luick@intel.com>
Thu, 28 Jul 2016 19:21:27 +0000 (15:21 -0400)
committerDoug Ledford <dledford@redhat.com>
Wed, 3 Aug 2016 02:46:21 +0000 (22:46 -0400)
commit0636e9ab8355c82ff7e9d6bb8aa2ded834b1f88d
treecf64670bd4fbd8844f4307afb415e56639506f2d
parent2677a7680e773195a4fdabd163d756cac1b9abd7
IB/hfi1: Add cache evict LRU list

The original code used a LRU list to evict nodes which were least
recently used.  For correctness the evict code was moved under the
handler->lock, now add back the LRU list.

Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Dean Luick <dean.luick@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/mmu_rb.c