Skip to content

Commit 005c469

Browse files
Yan, ZhengSage Weil
Yan, Zheng
authored and
Sage Weil
committed
ceph: move inode to proper flushing list when auth MDS changes
Signed-off-by: Yan, Zheng <[email protected]> Reviewed-by: Sage Weil <[email protected]>
1 parent e976cad commit 005c469

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

fs/ceph/caps.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1982,8 +1982,15 @@ static void kick_flushing_inode_caps(struct ceph_mds_client *mdsc,
19821982
cap = ci->i_auth_cap;
19831983
dout("kick_flushing_inode_caps %p flushing %s flush_seq %lld\n", inode,
19841984
ceph_cap_string(ci->i_flushing_caps), ci->i_cap_flush_seq);
1985+
19851986
__ceph_flush_snaps(ci, &session, 1);
1987+
19861988
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+
19871994
delayed = __send_cap(mdsc, cap, CEPH_CAP_OP_FLUSH,
19881995
__ceph_caps_used(ci),
19891996
__ceph_caps_wanted(ci),

0 commit comments

Comments
 (0)