Skip to content
  • Yan, Zheng's avatar
    ceph: fix file lock interruption · 9280be24
    Yan, Zheng authored
    
    
    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: default avatarYan, Zheng <zyan@redhat.com>
    9280be24