linux-aio: simplify removal of completed iocbs from the list
commit82595da8dedde128d8004ec47441aeb720c08704
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 11 Dec 2014 13:52:30 +0000 (11 14:52 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 12 Dec 2014 16:57:55 +0000 (12 16:57 +0000)
tree7be4908dfc8a445a28a622ecd514f81ea31619bb
parentde35464461cd8aa764ce03e8026202fe9861e29d
linux-aio: simplify removal of completed iocbs from the list

There is no need to do another O(n) pass on the list; the iocb to
split the list at is already available through the array we passed to
io_submit.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Message-id: 1418305950-30924-6-git-send-email-pbonzini@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/linux-aio.c
include/qemu/queue.h