提交 c5921fd0 编写于 作者: D David Teigland 提交者: Steven Whitehouse

[GFS2] fix typo in locking/dlm

Typo causes the error value from the wrong lock to be checked.
Signed-off-by: NDavid Teigland <teigland@redhat.com>
Signed-off-by: NSteven Whitehouse <swhiteho@redhat.com>
上级 36098198
......@@ -430,7 +430,7 @@ static int hold_null_lock(struct gdlm_lock *lp)
init_completion(&lpn->ast_wait);
gdlm_do_lock(lpn);
wait_for_completion(&lpn->ast_wait);
error = lp->lksb.sb_status;
error = lpn->lksb.sb_status;
if (error) {
printk(KERN_INFO "lock_dlm: hold_null_lock dlm error %d\n",
error);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册