diff options
author | Sage Weil <sage@newdream.net> | 2011-01-18 08:48:06 -0800 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2011-01-19 09:23:24 -0800 |
commit | 24be0c481067560b11441e794e27f166a3568863 (patch) | |
tree | e91a8f77b8ecdacf747e5418c30a1c18dbdc38a3 | |
parent | 50aac4fec503960380ab594a93a6fbfdf3f8915f (diff) | |
download | kernel_samsung_tuna-24be0c481067560b11441e794e27f166a3568863.zip kernel_samsung_tuna-24be0c481067560b11441e794e27f166a3568863.tar.gz kernel_samsung_tuna-24be0c481067560b11441e794e27f166a3568863.tar.bz2 |
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>
-rw-r--r-- | fs/ceph/caps.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ceph/caps.c b/fs/ceph/caps.c index 60d27bc..f654c7e 100644 --- a/fs/ceph/caps.c +++ b/fs/ceph/caps.c @@ -1658,6 +1658,8 @@ ack: if (cap == ci->i_auth_cap && ci->i_dirty_caps) flushing = __mark_caps_flushing(inode, session); + else + flushing = 0; mds = cap->mds; /* remember mds, so we don't repeat */ sent++; |