Skip to content
Commit 0eb6cd49 authored by Sage Weil's avatar Sage Weil
Browse files

ceph: only queue async writeback on cap revocation if there is dirty data



Normally, if the Fb cap bit is being revoked, we queue an async writeback.
If there is no dirty data but we still hold the cap, this leaves the
client sitting around doing nothing until the cap timeouts expire and the
cap is released on its own (as it would have been without the revocation).

Instead, only queue writeback if the bit is actually used (i.e., we have
dirty data).  If not, we can reply to the revocation immediately.

Signed-off-by: default avatarSage Weil <sage@newdream.net>
parent e9d17744
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment