]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
kclient: don't skip most recent mds op
authorSage Weil <sage@newdream.net>
Tue, 7 Jul 2009 16:51:27 +0000 (09:51 -0700)
committerSage Weil <sage@newdream.net>
Wed, 8 Jul 2009 17:48:10 +0000 (10:48 -0700)
We were skipping the most recent.  last_tid is the last tid we used.

src/kernel/mds_client.c

index 8bbc755b77ba7f9fec191fd38328805fc88237ee..af93a04f159d3e2d14676e6ae6d5b7b0509359e2 100644 (file)
@@ -1393,7 +1393,7 @@ static void kick_requests(struct ceph_mds_client *mdsc, int mds, int all)
        int i, got;
 
        dout(20, "kick_requests mds%d\n", mds);
-       while (nexttid < mdsc->last_tid) {
+       while (nexttid <= mdsc->last_tid) {
                got = radix_tree_gang_lookup(&mdsc->request_tree,
                                             (void **)&reqs, nexttid, 10);
                if (got == 0)