In some cases this may take a long time and will block renewing
the caps to MDS.
URL: https://tracker.ceph.com/issues/50223#note-21
Signed-off-by: Xiubo Li <xiubli@redhat.com>
iput(inode);
spin_lock(&mdsc->cap_delay_lock);
}
+
+ /*
+ * Just in case too many dirty caps or slow
+ * performance case won't block the delayed
+ * work to renew the caps.
+ */
+ if (jiffies - loop_start >= 5 * HZ)
+ break;
}
spin_unlock(&mdsc->cap_delay_lock);
doutc(cl, "done\n");