]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
kclient: override rdcache invalidation time when going down
authorYehuda Sadeh <yehuda@hq.newdream.net>
Thu, 30 Oct 2008 22:57:44 +0000 (15:57 -0700)
committerYehuda Sadeh <yehuda@hq.newdream.net>
Thu, 30 Oct 2008 22:57:54 +0000 (15:57 -0700)
src/kernel/caps.c

index 464d0d0a2978c5f4757a8665a4b0caeac1717e49..8055f4d43092103b3bf35aef2c8f5b652dd020b7 100644 (file)
@@ -595,7 +595,7 @@ retry_locked:
         * have cached pages, but don't want them, then try to invalidate.
         * If we fail, it's because pages are locked.... try again later.
         */
-       if (!time_before(jiffies, ci->i_hold_caps_until) &&
+       if ((!time_before(jiffies, ci->i_hold_caps_until) || mdsc->stopping) &&
            ci->i_wrbuffer_ref == 0 &&               /* no dirty pages... */
            ci->i_rdcache_gen &&                     /* may have cached pages */
            file_wanted == 0 &&                      /* no open files */