]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: clean up handle_cap_grant, handle_caps wrt session mutex
authorSage Weil <sage@newdream.net>
Tue, 16 Mar 2010 20:42:00 +0000 (13:42 -0700)
committerSage Weil <sage@newdream.net>
Tue, 23 Mar 2010 14:46:54 +0000 (07:46 -0700)
commit48c9b7c7009c54d6e19d5592b45e63e55cbd62b3
treea410e4db868f75dbace870930b9b032b877a552d
parentede3a16def2f0b51398ec564332c7d88bb2ebd00
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 <sage@newdream.net>
fs/ceph/caps.c