From: Josef Bacik Date: Mon, 3 Nov 2014 13:56:50 +0000 (-0500) Subject: Btrfs: don't take the chunk_mutex/dev_list mutex in statfs V2 X-Git-Tag: omap-for-v3.19/fixes-rc1~111^2~27 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e33fd993a74b3fda39c756803ba8b24bef72df5;p=pandora-kernel.git Btrfs: don't take the chunk_mutex/dev_list mutex in statfs V2 Our gluster boxes get several thousand statfs() calls per second, which begins to suck hardcore with all of the lock contention on the chunk mutex and dev list mutex. We don't really need to hold these things, if we have transient weirdness with statfs() because of the chunk allocator we don't care, so remove this locking. We still need the dev_list lock if you mount with -o alloc_start however, which is a good argument for nuking that thing from orbit, but that's a patch for another day. Thanks, Signed-off-by: Josef Bacik Signed-off-by: Chris Mason --- Reading git-diff-tree failed