async: optimize aio_bh_poll
commit7d506c90afa47facdb993bc19c15863eef584f1d
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 12 Jan 2017 18:08:00 +0000 (12 19:08 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 16 Jan 2017 13:25:18 +0000 (16 13:25 +0000)
tree351e0ea4b050c1a6b829c302e2e553f2eb4d7231
parent7c690fd1931f0908b18f7034b5d71d7b27ca59ef
async: optimize aio_bh_poll

Avoid entering the slow path of qemu_lockcnt_dec_and_lock if
no bottom half has to be deleted.

Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Message-id: 20170112180800.21085-11-pbonzini@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
async.c