]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
kclient: reschedule timeout for timeout length if remaining is zero
authorYehuda Sadeh <yehuda@hq.newdream.net>
Thu, 5 Mar 2009 00:39:18 +0000 (16:39 -0800)
committerYehuda Sadeh <yehuda@hq.newdream.net>
Thu, 5 Mar 2009 00:39:18 +0000 (16:39 -0800)
src/kernel/osd_client.c

index 4d7382a91df80a2be3e4343e3306387fdff95db6..6b5da646ff67ed605aa0325338a3598f0f9cd0d0 100644 (file)
@@ -694,7 +694,7 @@ static void reschedule_timeout(struct ceph_osd_client *osdc,
 
        jifs = timeout * HZ - jifs;
 
-       if (jifs < 0) {
+       if (jifs <= 0) {
                jifs %= timeout * HZ;
                jifs += timeout * HZ;
        }