diff options
author | Yan, Zheng <zheng.z.yan@intel.com> | 2013-05-31 10:40:24 +0200 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-07-04 00:32:50 +0200 |
commit | 005c46970e3a2a4b95da220eab43b87307646335 (patch) | |
tree | 10999cfca65fb271185bc0b1aa0783eddcbc1f98 /fs/ceph/caps.c | |
parent | rbd: fix a couple warnings (diff) | |
download | linux-005c46970e3a2a4b95da220eab43b87307646335.tar.xz linux-005c46970e3a2a4b95da220eab43b87307646335.zip |
ceph: move inode to proper flushing list when auth MDS changes
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Reviewed-by: Sage Weil <sage@inktank.com>
Diffstat (limited to 'fs/ceph/caps.c')
-rw-r--r-- | fs/ceph/caps.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/ceph/caps.c b/fs/ceph/caps.c index 790f88b15daf..9a5ccc9e0d62 100644 --- a/fs/ceph/caps.c +++ b/fs/ceph/caps.c @@ -1982,8 +1982,15 @@ static void kick_flushing_inode_caps(struct ceph_mds_client *mdsc, cap = ci->i_auth_cap; dout("kick_flushing_inode_caps %p flushing %s flush_seq %lld\n", inode, ceph_cap_string(ci->i_flushing_caps), ci->i_cap_flush_seq); + __ceph_flush_snaps(ci, &session, 1); + if (ci->i_flushing_caps) { + spin_lock(&mdsc->cap_dirty_lock); + list_move_tail(&ci->i_flushing_item, + &cap->session->s_cap_flushing); + spin_unlock(&mdsc->cap_dirty_lock); + delayed = __send_cap(mdsc, cap, CEPH_CAP_OP_FLUSH, __ceph_caps_used(ci), __ceph_caps_wanted(ci), |