]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: fix multiple mds session shutdown
authorSage Weil <sage@newdream.net>
Wed, 11 Aug 2010 21:51:23 +0000 (14:51 -0700)
committerSage Weil <sage@newdream.net>
Sun, 22 Aug 2010 22:04:43 +0000 (15:04 -0700)
commit207ca41682d3e03bae219d90eacaf512ab8ebd6e
tree00bde7250b6753910a38b454c7a9cee2eb7e84e7
parent82b211ed78831bcd76de4d9afac59d24240b085d
ceph: fix multiple mds session shutdown

The use of a completion when waiting for session shutdown during umount is
inappropriate, given the complexity of the condition.  For multiple MDS's,
this resulted in the umount thread spinning, often preventing the session
close message from being processed in some cases.

Switch to a waitqueue and defined a condition helper.  This cleans things
up nicely.

Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/mds_client.c
fs/ceph/mds_client.h