]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
kclient: fix osd timeout merge error
authorSage Weil <sage@newdream.net>
Tue, 27 Jan 2009 18:46:18 +0000 (10:46 -0800)
committerSage Weil <sage@newdream.net>
Tue, 27 Jan 2009 18:47:55 +0000 (10:47 -0800)
src/kernel/osd_client.c

index f9a1378e48b771a9fd33ad32c7de61210aaf4a22..b583831a64f105a2dc42b36076f0b66f35763104 100644 (file)
@@ -740,7 +740,7 @@ static void handle_timeout(struct work_struct *work)
                next_tid = req->r_tid + 1;
                if (time_after(jiffies, req->r_last_stamp + timeout) &&
                    req->r_last_osd >= 0 &&
-                   radix_tree_lookup(&pings, req->r_pg_osds[0]) == 0) {
+                   radix_tree_lookup(&pings, req->r_last_osd) == 0) {
                        struct ceph_entity_name n = {
                                .type = cpu_to_le32(CEPH_ENTITY_TYPE_OSD),
                                .num = cpu_to_le32(req->r_last_osd)
@@ -756,7 +756,7 @@ static void handle_timeout(struct work_struct *work)
        t = 0;
        while (radix_tree_gang_lookup(&pings, (void **)&req, t, 1)) {
                radix_tree_delete(&pings, req->r_last_osd);
-               t = req->r_pg_osds[0] + 1;
+               t = req->r_last_osd + 1;
        }
        mutex_unlock(&osdc->request_mutex);