From 932f4eb018f9b980cb030ec78b79f420ae1683cc Mon Sep 17 00:00:00 2001 From: Greg Farnum Date: Thu, 12 May 2011 15:36:26 -0700 Subject: [PATCH] uclient: clear out cap->wanted when caps get revoked. 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 --- src/client/Client.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/client/Client.cc b/src/client/Client.cc index d7af2b68fb732..629816c78a4cf 100644 --- a/src/client/Client.cc +++ b/src/client/Client.cc @@ -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); } -- 2.39.5