dlm: use FL_SLEEP to determine blocking vs non-blocking
authorAlexander Aring <aahringo@redhat.com>
Mon, 13 Nov 2023 21:24:10 +0000 (16:24 -0500)
committerDavid Teigland <teigland@redhat.com>
Thu, 16 Nov 2023 17:59:19 +0000 (11:59 -0600)
commit6bd4a2bfe568d963af721cc5efa52091bf1a3746
tree4b64c00c941262a866a24744b6861fd70664e931
parentdbee1adeb7e6d31c9afbad8e9248c15694f1cc0c
dlm: use FL_SLEEP to determine blocking vs non-blocking

This patch uses the FL_SLEEP flag in struct file_lock to determine if
the lock request is a blocking or non-blocking request. Before dlm was
using IS_SETLKW() was being used which is not usable for lock requests
coming from lockd when EXPORT_OP_SAFE_ASYNC_LOCK inside the export flags
is set.

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