]> git.baikalelectronics.ru Git - kernel.git/commit
fs: dlm: change posix lock sigint handling
authorAlexander Aring <aahringo@redhat.com>
Wed, 22 Jun 2022 18:45:09 +0000 (14:45 -0400)
committerDavid Teigland <teigland@redhat.com>
Fri, 24 Jun 2022 16:53:05 +0000 (11:53 -0500)
commitccf0735e989ce2b3bf69ba2815f412ea053be0ab
tree6ed9b93b8ba660250299c4f3ac81966b928d7fcb
parent083a3d760c81e16499016d956215fe7f971d5e30
fs: dlm: change posix lock sigint handling

This patch changes the handling of a plock operation that was interrupted
while waiting for a user space reply from dlm_controld.  (This is not
the lock blocking state, i.e. locks_lock_file_wait().)

Currently, when an op is interrupted while waiting on user space, the
op is removed.  When the user space result later arrives, a kernel
message is loggged: "dev_write no op...".  This can be seen from a test
such as "stress-ng --fcntl 100" and interrupting it with ctrl-c.

Now, leave the op in place when interrupted and remove it when the
result arrives (the result will be ignored.)  With this change, the
logged message is not expected to appear, and would indicate a bug.

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