ceph: set mds_wanted when MDS reply changes a cap to auth cap
authorYan, Zheng <zheng.z.yan@intel.com>
Tue, 18 Mar 2014 02:15:29 +0000 (10:15 +0800)
committerSage Weil <sage@inktank.com>
Sat, 5 Apr 2014 04:07:12 +0000 (21:07 -0700)
commitd9ffc4f77073e7e1ca731f21804769de9c094b87
treefe7cbafb5174061c3e64e0765caa137405a9494b
parenteb13e832f823f6c110ea53e3067bafe22b87de63
ceph: set mds_wanted when MDS reply changes a cap to auth cap

When adjusting caps client wants, MDS does not record caps that are
not allowed. For non-auth MDS, it does not record WR caps. So when
a MDS reply changes a non-auth cap to auth cap, client needs to set
cap's mds_wanted according to the reply.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
fs/ceph/caps.c