summaryrefslogtreecommitdiff
path: root/fs/dlm/lockspace.h
diff options
context:
space:
mode:
authorAlexander Aring <aahringo@redhat.com>2023-05-24 19:02:04 +0300
committerDavid Teigland <teigland@redhat.com>2023-05-24 22:27:07 +0300
commit57e2c2f2d94cfd551af91cedfa1af6d972487197 (patch)
tree553f8f97089c50cc558659b44427888cad5b1b0b /fs/dlm/lockspace.h
parent0f2b1cb89ccdbdcedf7143f4153a4da700a05f48 (diff)
downloadlinux-57e2c2f2d94cfd551af91cedfa1af6d972487197.tar.xz
fs: dlm: fix mismatch of plock results from userspace
When a waiting plock request (F_SETLKW) is sent to userspace for processing (dlm_controld), the result is returned at a later time. That result could be incorrectly matched to a different waiting request in cases where the owner field is the same (e.g. different threads in a process.) This is fixed by comparing all the properties in the request and reply. The results for non-waiting plock requests are now matched based on list order because the results are returned in the same order they were sent. Cc: stable@vger.kernel.org Signed-off-by: Alexander Aring <aahringo@redhat.com> Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm/lockspace.h')
0 files changed, 0 insertions, 0 deletions