mirror of
https://github.com/ceph/ceph
synced 2025-01-04 10:12:30 +00:00
Merge pull request #15891 from minggr/wip-sdata_op_ordering_lock
osd: unlock sdata_op_ordering_lock with sdata_lock hold to avoid miss… Reviewed-by: Sage Weil <sage@redhat.com> Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
This commit is contained in:
commit
4e6af859a0
@ -9853,10 +9853,10 @@ void OSD::ShardedOpWQ::_process(uint32_t thread_index, heartbeat_handle_d *hb)
|
||||
if (sdata->pqueue->empty()) {
|
||||
dout(20) << __func__ << " empty q, waiting" << dendl;
|
||||
// optimistically sleep a moment; maybe another work item will come along.
|
||||
sdata->sdata_op_ordering_lock.Unlock();
|
||||
osd->cct->get_heartbeat_map()->reset_timeout(hb,
|
||||
osd->cct->_conf->threadpool_default_timeout, 0);
|
||||
sdata->sdata_lock.Lock();
|
||||
sdata->sdata_op_ordering_lock.Unlock();
|
||||
sdata->sdata_cond.WaitInterval(sdata->sdata_lock,
|
||||
utime_t(osd->cct->_conf->threadpool_empty_queue_max_wait, 0));
|
||||
sdata->sdata_lock.Unlock();
|
||||
|
Loading…
Reference in New Issue
Block a user