dlm: fix lvb copy for user locks
authorDavid Teigland <teigland@redhat.com>
Tue, 25 Aug 2015 17:51:44 +0000 (12:51 -0500)
committerDavid Teigland <teigland@redhat.com>
Tue, 25 Aug 2015 19:41:50 +0000 (14:41 -0500)
commitb96f465035f9fae83c1d8de3e80eecfe6877608c
tree75659c1ba50859bf0b5537972f94f439f2d0867e
parent18df8a87badac0ab05679df9bd44b5033e30d97c
dlm: fix lvb copy for user locks

For a userland lock request, the previous and current
lock modes are used to decide when the lvb should be
copied back to the user.  The wrong previous value was
used, so that it always matched the current value.
This caused the lvb to be copied back to the user in
the wrong cases.

Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/user.c
include/uapi/linux/dlm_device.h