ceph: drop CAP_LINK_SHARED when sending "link" request to MDS
authorYan, Zheng <zheng.z.yan@intel.com>
Sun, 21 Jul 2013 12:25:25 +0000 (20:25 +0800)
committerSage Weil <sage@inktank.com>
Sat, 10 Aug 2013 00:54:32 +0000 (17:54 -0700)
commitad88f23f42a9b34a0b29a5b19d37251ccb7dd776
tree730810dccdd6eb2fff76d831356edcee8d537bed
parentc338c07c51e3106711fad5eb599e375eadb6855d
ceph: drop CAP_LINK_SHARED when sending "link" request to MDS

To handle "link" request, the MDS need to xlock inode's linklock,
which requires revoking any CAP_LINK_SHARED.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Reviewed-by: Sage Weil <sage@inktank.com>
fs/ceph/dir.c