This should prevent us from "losing" caps off the dirty list. See
#1063. If we have dirty caps we don't want to short-circuit out
of sending caps just because what we're issued matches what we want.
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
goto ack;
if (wanted == cap->wanted && // mds knows what we want.
- (cap->issued & ~retain) == 0) // and we don't have anything we wouldn't like
- continue;
+ ((cap->issued & ~retain) == 0) &&// and we don't have anything we wouldn't like
+ !in->dirty_caps) // and we have no dirty caps
+ continue;
if (now < in->hold_caps_until) {
dout(10) << "delaying cap release" << dendl;