History

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.

David Teigland committed 11 years ago

Commit b96f4651 parent 18df8a82 files · +5 −4Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/linux/dlm_device.h+1−1
@@ -26,7 +26,7 @@ · 25 unmodified lines
26/* Version of the device interface */26/* Version of the device interface */
27#define DLM_DEVICE_VERSION_MAJOR 627#define DLM_DEVICE_VERSION_MAJOR 6
28#define DLM_DEVICE_VERSION_MINOR 028#define DLM_DEVICE_VERSION_MINOR 0
29#define DLM_DEVICE_VERSION_PATCH 129#define DLM_DEVICE_VERSION_PATCH 2
30 30
31/* struct passed to the lock write */31/* struct passed to the lock write */
32struct dlm_lock_params {32struct dlm_lock_params {