]> 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.weil@dreamhost.com>
Wed, 18 May 2011 04:29:57 +0000 (21:29 -0700)
commitee7fa813ef29890557f0b03bd3950d422484215d
tree3f147f9774dae8efbf76ed27d5f8a48ccc388154
parent9be719387fb720db3b24cec889d1dc8e33aff6b3
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