diff options
author | David Teigland <teigland@redhat.com> | 2013-04-05 10:57:15 +0100 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2013-04-08 12:03:15 -0500 |
commit | 900083183959107159f962b83b3b439d53796499 (patch) | |
tree | 45827ae0ce336cc0767bcb09938772df4497a809 /fs/dlm/config.c | |
parent | 31880c37c11e28cb81c70757e38392b42e695dc6 (diff) |
dlm: avoid unnecessary posix unlock
When the kernel clears flocks/plocks during close, it calls posix
unlock when there are flocks but no posix locks. Without this
patch, that unnecessary posix unlock is passed to userland
(dlm_controld), across the cluster, and back to the kernel.
This can create a lot of plock activity, even when no posix
locks had been used.
This patch copies the nfs approach, and skips the full posix
unlock if there is no plock found during the vfs unlock phase.
Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm/config.c')
0 files changed, 0 insertions, 0 deletions