From 398f2f07c4890c972bc5aef22633c886fd030094 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 21 Apr 2009 15:12:39 -0700 Subject: [PATCH] kclient: requeue inode whenever we dirty (use) EXCL|WR caps. --- src/kernel/caps.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/kernel/caps.c b/src/kernel/caps.c index 6d7aa08caf867..1efb6265e84f9 100644 --- a/src/kernel/caps.c +++ b/src/kernel/caps.c @@ -1320,6 +1320,10 @@ int __ceph_mark_dirty_caps(struct ceph_inode_info *ci, int mask) dirty |= I_DIRTY_DATASYNC; if (dirty) __mark_inode_dirty(inode, dirty); + + __cap_set_timeouts(mdsc, ci); + __cap_delay_requeue(mdsc, ci); + return was; } -- 2.39.5