]> git.proxmox.com Git - mirror_qemu.git/commit - block/nvme.c
block/nvme: poll queues without q->lock
authorStefan Hajnoczi <stefanha@redhat.com>
Wed, 17 Jun 2020 13:21:55 +0000 (14:21 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 23 Jun 2020 14:46:08 +0000 (15:46 +0100)
commit2446e0e2e9c9aaa5f8e8c7ef9a41fe8516054831
treecf7b49f174a5c6880ec9e9992c1ae86a4d5a5370
parentd6d1a65ccab670788b6c30d918ac7bd636513f8e
block/nvme: poll queues without q->lock

A lot of CPU time is spent simply locking/unlocking q->lock during
polling. Check for completion outside the lock to make q->lock disappear
from the profile.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Sergio Lopez <slp@redhat.com>
Message-id: 20200617132201.1832152-2-stefanha@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/nvme.c