Home
last modified time | relevance | path

Searched hist:"0 eb6cd49" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/fs/ceph/
H A Dcaps.c0eb6cd49 Thu Aug 05 15:53:18 CDT 2010 Sage Weil <sage@newdream.net> 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: Sage Weil <sage@newdream.net>
0eb6cd49 Thu Aug 05 15:53:18 CDT 2010 Sage Weil <sage@newdream.net> 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: Sage Weil <sage@newdream.net>