提交 817d10ba 编写于 作者: D David Teigland

dlm: fix plock dev_write return value

The return value on writes to the plock device should be
the number of bytes written.  It was returning 0 instead
when an nfs lock callback was involved.
Reported-by: NNathan Straz <nstraz@redhat.com>
Signed-off-by: NDavid Teigland <teigland@redhat.com>
上级 0035a4b1
......@@ -379,7 +379,7 @@ static ssize_t dev_write(struct file *file, const char __user *u, size_t count,
struct plock_xop *xop;
xop = (struct plock_xop *)op;
if (xop->callback)
count = dlm_plock_callback(op);
dlm_plock_callback(op);
else
wake_up(&recv_wq);
} else
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册