diff options
author | Yan, Zheng <zheng.z.yan@intel.com> | 2013-05-31 04:40:24 -0400 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-07-03 18:32:50 -0400 |
commit | 005c46970e3a2a4b95da220eab43b87307646335 (patch) | |
tree | 10999cfca65fb271185bc0b1aa0783eddcbc1f98 /fs/ceph/caps.c | |
parent | e976cad0f0dbe5440a4ca38e29e1f932d9319125 (diff) |
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, | |||
1982 | cap = ci->i_auth_cap; | 1982 | cap = ci->i_auth_cap; |
1983 | dout("kick_flushing_inode_caps %p flushing %s flush_seq %lld\n", inode, | 1983 | dout("kick_flushing_inode_caps %p flushing %s flush_seq %lld\n", inode, |
1984 | ceph_cap_string(ci->i_flushing_caps), ci->i_cap_flush_seq); | 1984 | ceph_cap_string(ci->i_flushing_caps), ci->i_cap_flush_seq); |
1985 | |||
1985 | __ceph_flush_snaps(ci, &session, 1); | 1986 | __ceph_flush_snaps(ci, &session, 1); |
1987 | |||
1986 | if (ci->i_flushing_caps) { | 1988 | if (ci->i_flushing_caps) { |
1989 | spin_lock(&mdsc->cap_dirty_lock); | ||
1990 | list_move_tail(&ci->i_flushing_item, | ||
1991 | &cap->session->s_cap_flushing); | ||
1992 | spin_unlock(&mdsc->cap_dirty_lock); | ||
1993 | |||
1987 | delayed = __send_cap(mdsc, cap, CEPH_CAP_OP_FLUSH, | 1994 | delayed = __send_cap(mdsc, cap, CEPH_CAP_OP_FLUSH, |
1988 | __ceph_caps_used(ci), | 1995 | __ceph_caps_used(ci), |
1989 | __ceph_caps_wanted(ci), | 1996 | __ceph_caps_wanted(ci), |