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>
// 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"