]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
kclient: renew caps twice as often for now (to counteract slow clock on uml)
authorSage Weil <sage@newdream.net>
Tue, 8 Apr 2008 17:58:56 +0000 (10:58 -0700)
committerSage Weil <sage@newdream.net>
Wed, 9 Apr 2008 03:50:50 +0000 (20:50 -0700)
src/kernel/mds_client.c

index 844599ef2595e40051bd52f83d32db825e4453e0..22e3f461ef5c61bddd992845ce6d7c0cd829c467 100644 (file)
@@ -1535,12 +1535,11 @@ void schedule_delayed(struct ceph_mds_client *mdsc)
        /*
         * renew at 1/2 the advertised timeout period.
         */
-       int delay = mdsc->mdsmap->m_cap_bit_timeout >> 1;
-       unsigned hz = HZ * delay;
+       int delay = mdsc->mdsmap->m_cap_bit_timeout >> 2;
+       unsigned hz = round_jiffies_relative(HZ * delay);
        int r;
        dout(10, "schedule_delayed for %d seconds (%u hz)\n", delay, hz);
        r = schedule_delayed_work(&mdsc->delayed_work, hz);
-       dout(10, "r = %d\n", r);
 }
 
 void delayed_work(struct work_struct *work)