ceph: fix erroneous cap flush to non-auth mds

The int flushing is global and not clear on each iteration of the loop,
which can cause a second flush of caps to any MDSs with ids greater than
the auth.

Signed-off-by: Sage Weil <sage@newdream.net>

Sage Weil 24be0c48 50aac4fe

+2
+2
fs/ceph/caps.c
··· 1658 1658 1659 1659 if (cap == ci->i_auth_cap && ci->i_dirty_caps) 1660 1660 flushing = __mark_caps_flushing(inode, session); 1661 + else 1662 + flushing = 0; 1661 1663 1662 1664 mds = cap->mds; /* remember mds, so we don't repeat */ 1663 1665 sent++;