From: Sage Weil Date: Tue, 16 Mar 2010 20:42:00 +0000 (-0700) Subject: ceph: clean up handle_cap_grant, handle_caps wrt session mutex X-Git-Tag: v2.6.34-rc3~6^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=15637c8b1251c38694c32214eba69b72a30e9d9b;p=pandora-kernel.git ceph: clean up handle_cap_grant, handle_caps wrt session mutex Drop session mutex unconditionally in handle_cap_grant, and do the check_caps from the handle_cap_grant helper. This avoids using a magic return value. Also avoid using a flag variable in the IMPORT case and call check_caps at the appropriate point. Signed-off-by: Sage Weil --- Reading git-diff-tree failed