Message ID | 20230717143733.448253-2-stefanha@redhat.com |
---|---|
State | New |
Headers | show |
Series | [PULL,for-8.1,1/1] block/nvme: invoke blk_io_plug_call() outside q->lock | expand |
diff --git a/block/nvme.c b/block/nvme.c index 7ca85bc44a..b6e95f0b7e 100644 --- a/block/nvme.c +++ b/block/nvme.c @@ -501,8 +501,9 @@ static void nvme_submit_command(NVMeQueuePair *q, NVMeRequest *req, q->sq.tail * NVME_SQ_ENTRY_BYTES, cmd, sizeof(*cmd)); q->sq.tail = (q->sq.tail + 1) % NVME_QUEUE_SIZE; q->need_kick++; + qemu_mutex_unlock(&q->lock); + blk_io_plug_call(nvme_unplug_fn, q); - qemu_mutex_unlock(&q->lock); } static void nvme_admin_cmd_sync_cb(void *opaque, int ret)