]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: do not shift to EXCL or MIX while rdlocked
authorSage Weil <sage.weil@dreamhost.com>
Wed, 18 May 2011 04:29:33 +0000 (21:29 -0700)
committerSage Weil <sage@newdream.net>
Wed, 25 May 2011 16:38:06 +0000 (09:38 -0700)
commit0aa18f32e8347c4615505d3c662ca2c118d993fe
treeece9b6d8fa7bc3e370752e745ac033e02fcbfd76
parent7330c3c473aa128b1e3ecb8752278f655bc79620
mds: do not shift to EXCL or MIX while rdlocked

There was an old change in file_eval() that was allowing us to switch from
SYNC to MIX or EXCL while there were rdlocks, which either caused lots of
lock thrashing or could (I think) hang things up completely.  This was
from ea10a672, an ancient fix for something related that appears to have
taken out the rdlocked check by accident.

In my tests (one writer, one stat-er), this took things from long stalls
(up to 20 seconds) to very responsive stats.  Yay!

Fixes: #791
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/mds/Locker.cc