]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
kclient: add missing r_wait list_head init
authorSage Weil <sage@newdream.net>
Thu, 19 Feb 2009 22:38:33 +0000 (14:38 -0800)
committerSage Weil <sage@newdream.net>
Thu, 19 Feb 2009 22:38:33 +0000 (14:38 -0800)
src/kernel/mds_client.c
src/kernel/mds_client.h

index 69f09abfbf06c36b9b9a9a57590ada29c6cf3ce4..86df0aa043cd64cae25590f2883717dde7de92e7 100644 (file)
@@ -851,6 +851,7 @@ ceph_mdsc_create_request(struct ceph_mds_client *mdsc, int op,
        INIT_LIST_HEAD(&req->r_listener_item);
        req->r_fmode = -1;
        atomic_set(&req->r_ref, 1);  /* one for request_tree, one for caller */
+       INIT_LIST_HEAD(&req->r_wait);
        init_completion(&req->r_completion);
        init_completion(&req->r_safe_completion);
        INIT_LIST_HEAD(&req->r_unsafe_item);
index 870cf3776867895b43911723882fbbf40d099d20..7b07a63102f8e49249d295c2cc939049d19f6f1b 100644 (file)
@@ -162,8 +162,6 @@ struct ceph_mds_request {
        unsigned long r_request_started; /* start time for mds request only,
                                            used to measure lease durations */
 
-       struct list_head r_wait;
-
        /* for choosing which mds to send this request to */
        int r_direct_mode;
        u32 r_direct_hash;      /* choose dir frag based on this dentry hash */
@@ -187,6 +185,7 @@ struct ceph_mds_request {
        int               r_resend_mds; /* mds to resend to next, if any*/
 
        atomic_t          r_ref;
+       struct list_head  r_wait;
        struct completion r_completion;
        struct completion r_safe_completion;
        ceph_mds_request_callback_t r_callback;