Whamcloud - gitweb
mdt: mdt_thread_info_init(): oops, last commit was too fast: zeroing is still required.
authornikita <nikita>
Sun, 15 Oct 2006 02:16:04 +0000 (02:16 +0000)
committernikita <nikita>
Sun, 15 Oct 2006 02:16:04 +0000 (02:16 +0000)
lustre/mdt/mdt_handler.c

index 758e506..493f441 100644 (file)
@@ -1732,6 +1732,11 @@ static void mdt_thread_info_init(struct ptlrpc_request *req,
 
         LASSERT(info->mti_env != req->rq_svc_thread->t_env);
 
+        /*
+         * XXX Leave zeroing here, unless everything is fixed.
+         */
+        memset(info, 0, sizeof *info);
+
         info->mti_rep_buf_nr = ARRAY_SIZE(info->mti_rep_buf_size);
         for (i = 0; i < ARRAY_SIZE(info->mti_rep_buf_size); i++)
                 info->mti_rep_buf_size[i] = -1;