]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: fix canceled lock attempt
authorSage Weil <sage@newdream.net>
Wed, 25 May 2011 21:54:15 +0000 (14:54 -0700)
committerSage Weil <sage@newdream.net>
Wed, 25 May 2011 21:56:28 +0000 (14:56 -0700)
commit28c3026543582c18061e7e08b0802ff7744b5d02
treeb323c2b376a940b77495af73a74355cd44d2cb88
parent73e28f2e8bdfa0d6517aa3291f00d8c2d3959d72
mds: fix canceled lock attempt

If client tries to lock a file, has to wait, and then cancels the attempt,
the client will send an unlock request to unwind its state.

 - the unlock now removes the waiting lock attempt from the wait list
 - when the lock request retries and finds it is no longer on the wait
   list it will fail.

Signed-off-by: Sage Weil <sage@newdream.net>
src/mds/MDCache.h
src/mds/Server.cc
src/mds/flock.h