From: T Makphaibulchoke Date: Tue, 18 Mar 2014 23:23:20 +0000 (-0400) Subject: fs/mbcache.c: doucple the locking of local from global data X-Git-Tag: v3.15-rc1~91^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f3e55fe02d12213f87869768aa2b0bad3ba9a7d;p=pandora-kernel.git 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 Signed-off-by: "Theodore Ts'o" --- Reading git-diff-tree failed