fs: dlm: make F_SETLK use unkillable wait_event
authorAlexander Aring <aahringo@redhat.com>
Fri, 19 May 2023 15:21:27 +0000 (11:21 -0400)
committerDavid Teigland <teigland@redhat.com>
Tue, 23 May 2023 17:56:58 +0000 (12:56 -0500)
commit0f2b1cb89ccdbdcedf7143f4153a4da700a05f48
treed178b726688024cbb00e0faa9bdf163a9fa02b23
parent59e45c758ca1b9893ac923dd63536da946ac333b
fs: dlm: make F_SETLK use unkillable wait_event

While a non-waiting posix lock request (F_SETLK) is waiting for
user space processing (in dlm_controld), wait for that processing
to complete with an unkillable wait_event(). This makes F_SETLK
behave the same way for F_RDLCK, F_WRLCK and F_UNLCK. F_SETLKW
continues to use wait_event_killable().

Cc: stable@vger.kernel.org
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/plock.c