mirror of
https://github.com/ceph/ceph
synced 2025-01-19 09:32:00 +00:00
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:
parent
a8ac453a82
commit
542e1344b6
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user