ceph: unwind canceled flock state
authorSage Weil <sage@newdream.net>
Wed, 25 May 2011 21:56:12 +0000 (14:56 -0700)
committerSage Weil <sage@newdream.net>
Wed, 8 Jun 2011 04:36:45 +0000 (21:36 -0700)
commit0c1f91f27140cf3b6e38dc4e892adac241c73a20
tree5058e4c66a16e2c1d808ce66317ef2c9fdb21590
parent0e98728fa32d338907631349a8cc2afa07c0cb9a
ceph: unwind canceled flock state

If we request a lock and then abort (e.g., ^C), we need to send a matching
unlock request to the MDS to unwind our lock attempt to avoid indefinitely
blocking other clients.

Reported-by: Brian Chrisman <brchrisman@gmail.com>
Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/locks.c