Patchwork [v2,2/2] sheepdog: pass oid directly to send_pending_req()

login
register
mail settings
Submitter namei.unix@gmail.com
Date Dec. 17, 2012, 6:17 a.m.
Message ID <1355725047-5096-2-git-send-email-namei.unix@gmail.com>
Download mbox | patch
Permalink /patch/206784/
State New
Headers show

Comments

namei.unix@gmail.com - Dec. 17, 2012, 6:17 a.m.
From: Liu Yuan <tailai.ly@taobao.com>

Cc: MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>
Cc: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Liu Yuan <tailai.ly@taobao.com>
---
 block/sheepdog.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
MORITA Kazutaka - Dec. 17, 2012, 7:49 a.m.
At Mon, 17 Dec 2012 14:17:27 +0800,
Liu Yuan wrote:
> 
> From: Liu Yuan <tailai.ly@taobao.com>
> 
> Cc: MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>
> Cc: Kevin Wolf <kwolf@redhat.com>
> Signed-off-by: Liu Yuan <tailai.ly@taobao.com>
> ---
>  block/sheepdog.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>

Patch

diff --git a/block/sheepdog.c b/block/sheepdog.c
index ef7bc81..ceabc00 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: