FileStore: don't lock op_tp in queue_op

Neither caller of queue_op can race.
1) in queue_transactions, already under submit lock
2) in _journaled_ahead, journal finisher is single threaded

Signed-off-by: Samuel Just <sam.just@inktank.com>
This commit is contained in:
Samuel Just 2012-10-10 09:43:57 -07:00
parent a8ac453a82
commit 542e1344b6

View File

@ -2223,15 +2223,12 @@ void FileStore::queue_op(OpSequencer *osr, Op *o)
// queue during commit in order to put the store in a consistent
// state.
apply_manager.op_apply_start(o->op);
op_tp.lock();
osr->queue(o);
logger->inc(l_os_ops);
logger->inc(l_os_bytes, o->bytes);
op_tp.unlock();
dout(5) << "queue_op " << o << " seq " << o->op
<< " " << *osr
<< " " << o->bytes << " bytes"