nvme: correct locking around completion
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 14 Aug 2018 06:27:39 +0000 (08:27 +0200)
committerFam Zheng <famz@redhat.com>
Fri, 12 Oct 2018 01:46:14 +0000 (09:46 +0800)
commit6388147296cd4c841a7d4409ba622c200332a8c7
tree5b684d10720da6ae2e7eeefb595a02abb420cf37
parent14a2d11825ddc37d6547a80704ae6450e9e376c7
nvme: correct locking 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 <pbonzini@redhat.com>
Message-Id: <20180814062739.19640-1-pbonzini@redhat.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
block/nvme.c