diff options
author | T Makphaibulchoke <tmac@hp.com> | 2014-03-18 19:23:20 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2014-03-18 19:23:20 -0400 |
commit | 1f3e55fe02d12213f87869768aa2b0bad3ba9a7d (patch) | |
tree | 75fc0934a88c67ba00f4c2b30fc00e3c3c281e61 /fs/ceph | |
parent | 3e037e5211252902a188a6a11aecd247409d0229 (diff) |
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 'fs/ceph')
0 files changed, 0 insertions, 0 deletions