From: Liu Yuan Date: Mon, 17 Dec 2012 06:17:27 +0000 (+0800) Subject: sheepdog: pass oid directly to send_pending_req() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=d6b1ef89a1ede41334e4d0fa27e600e0b4d4f209;p=qemu.git sheepdog: pass oid directly to send_pending_req() Cc: MORITA Kazutaka Cc: Kevin Wolf Signed-off-by: Liu Yuan Reviewed-by: MORITA Kazutaka Signed-off-by: Stefan Hajnoczi --- diff --git a/block/sheepdog.c b/block/sheepdog.c index b9186fb92b..e821746116 100644 --- a/block/sheepdog.c +++ b/block/sheepdog.c @@ -724,7 +724,7 @@ static void coroutine_fn aio_read_response(void *opaque) * create requests are not allowed, so we search the * pending requests here. */ - send_pending_req(s, vid_to_data_oid(s->inode.vdi_id, idx)); + send_pending_req(s, aio_req->oid); } break; case AIOCB_READ_UDATA: