diff options
author | Yan, Zheng <zyan@redhat.com> | 2014-10-14 04:33:35 +0200 |
---|---|---|
committer | Ilya Dryomov <idryomov@redhat.com> | 2014-12-17 18:09:49 +0100 |
commit | 9280be24dc9c7aaee230de3ed33f8357386de9a2 (patch) | |
tree | 5ff0cf8f4326a05d72d8aef60b75ab631af07bc9 /net | |
parent | Linux 3.18 (diff) | |
download | linux-9280be24dc9c7aaee230de3ed33f8357386de9a2.tar.xz linux-9280be24dc9c7aaee230de3ed33f8357386de9a2.zip |
ceph: fix file lock interruption
When a lock operation is interrupted, current code sends a unlock request to
MDS to undo the lock operation. This method does not work as expected because
the unlock request can drop locks that have already been acquired.
The fix is use the newly introduced CEPH_LOCK_FCNTL_INTR/CEPH_LOCK_FLOCK_INTR
requests to interrupt blocked file lock request. These requests do not drop
locks that have alread been acquired, they only interrupt blocked file lock
request.
Signed-off-by: Yan, Zheng <zyan@redhat.com>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions