• Y
    ceph: fix file lock interruption · 9280be24
    Yan, Zheng 提交于
    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: NYan, Zheng <zyan@redhat.com>
    9280be24
mds_client.c 95.3 KB