nvme: simplify code around completion
PATCH v2 1/1 nvme: simplify code around completion
nvme_poll_queues is already protected by q->lock, and AIO callbacks are invoked outside the AioContext lock. So remove the acquire/release pair in nvme_handle_event.
Signed-off-by Paolo Bonzini <[email protected]>
--- block/nvme.c | 2 -- 1 file changed, 2 deletions(-)
block/nvme.c +0 -2
@@ -489,10 +489,8 @@ static void nvme_handle_event(EventNotifier *n)BDRVNVMeState *s =container_of (n, BDRVNVMeState, irq_notifier);trace_nvme_handle_event (s); -aio_context_acquire (s->aio_context);event_notifier_test_and_clear (n);nvme_poll_queues (s); -aio_context_release (s->aio_context); }static bool nvme_add_io_queue (BlockDriverState *bs,Error **errp)
Signature · 1 line
2.17.1