summaryrefslogtreecommitdiffstats
path: root/drivers/nubus
diff options
context:
space:
mode:
authorT Makphaibulchoke <tmac@hp.com>2014-03-18 19:23:20 -0400
committerTheodore Ts'o <tytso@mit.edu>2014-03-18 19:23:20 -0400
commit1f3e55fe02d12213f87869768aa2b0bad3ba9a7d (patch)
tree75fc0934a88c67ba00f4c2b30fc00e3c3c281e61 /drivers/nubus
parent3e037e5211252902a188a6a11aecd247409d0229 (diff)
downloadlinux-1f3e55fe02d12213f87869768aa2b0bad3ba9a7d.tar.bz2
fs/mbcache.c: doucple the locking of local from global data
The patch increases the parallelism of mbcache by using the built-in lock in the hlist_bl_node to protect the mb_cache's local block and index hash chains. The global data mb_cache_lru_list and mb_cache_list continue to be protected by the global mb_cache_spinlock. New block group spinlock, mb_cache_bg_lock is also added to serialize accesses to mb_cache_entry's local data. A new member e_refcnt is added to the mb_cache_entry structure to help preventing an mb_cache_entry from being deallocated by a free while it is being referenced by either mb_cache_entry_get() or mb_cache_entry_find(). Signed-off-by: T. Makphaibulchoke <tmac@hp.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'drivers/nubus')
0 files changed, 0 insertions, 0 deletions