提交 41b8c8a1 编写于 作者: K Kurt Hackel 提交者: Mark Fasheh

ocfs2: properly initialize the mle structure

Signed-off-by: NKurt Hackel <kurt.hackel@oracle.com>
Signed-off-by: NMark Fasheh <mark.fasheh@oracle.com>
上级 da01ad05
...@@ -1512,15 +1512,12 @@ int dlm_master_request_handler(struct o2net_msg *msg, u32 len, void *data) ...@@ -1512,15 +1512,12 @@ int dlm_master_request_handler(struct o2net_msg *msg, u32 len, void *data)
mlog_errno(-ENOMEM); mlog_errno(-ENOMEM);
goto send_response; goto send_response;
} }
spin_lock(&dlm->spinlock);
dlm_init_mle(mle, DLM_MLE_BLOCK, dlm, NULL,
name, namelen);
spin_unlock(&dlm->spinlock);
goto way_up_top; goto way_up_top;
} }
// mlog(0, "this is second time thru, already allocated, " // mlog(0, "this is second time thru, already allocated, "
// "add the block.\n"); // "add the block.\n");
dlm_init_mle(mle, DLM_MLE_BLOCK, dlm, NULL, name, namelen);
set_bit(request->node_idx, mle->maybe_map); set_bit(request->node_idx, mle->maybe_map);
list_add(&mle->list, &dlm->master_list); list_add(&mle->list, &dlm->master_list);
response = DLM_MASTER_RESP_NO; response = DLM_MASTER_RESP_NO;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册