bluestore/NVMEDevice: remove mm_pause according to the example givn by

spdk.

Signed-off-by: Pan Liu <wanjun.lp@alibaba-inc.com>
Signed-off-by: Ziye Yang <optimistyzy@gmail.com>
This commit is contained in:
Pan Liu 2017-09-04 11:14:18 +08:00
parent 90bd1961cc
commit cc4596803c

View File

@ -474,10 +474,7 @@ void SharedDriverQueueData::_aio_thread()
again:
dout(40) << __func__ << " polling" << dendl;
if (inflight) {
if (!spdk_nvme_qpair_process_completions(qpair, g_conf->bluestore_spdk_max_io_completion)) {
dout(30) << __func__ << " idle, have a pause" << dendl;
_mm_pause();
}
spdk_nvme_qpair_process_completions(qpair, g_conf->bluestore_spdk_max_io_completion);
}
for (; t; t = t->next) {