]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
uclient: clear out cap->wanted when caps get revoked.
authorGreg Farnum <gregory.farnum@dreamhost.com>
Thu, 12 May 2011 22:36:26 +0000 (15:36 -0700)
committerGreg Farnum <gregory.farnum@dreamhost.com>
Thu, 12 May 2011 22:36:26 +0000 (15:36 -0700)
This ensures that we will send a response to the MDS letting it know
that we've revoked our caps.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
src/client/Client.cc

index d7af2b68fb73203f7f2f88cfe2c352922c4a378d..629816c78a4cf4967521be6341cb4eeb110f02e3 100644 (file)
@@ -2941,6 +2941,7 @@ void Client::handle_cap_grant(Inode *in, int mds, InodeCap *cap, MClientCaps *m)
     if ((used & ~new_caps) & CEPH_CAP_FILE_BUFFER)
       _flush(in);
     else {
+      cap->wanted = 0; // don't let check_caps skip sending a response to MDS
       check_caps(in, true);
     }