From 98dfc6f26715b146fb7e498a5b02fdb511e8e093 Mon Sep 17 00:00:00 2001 From: Yu Wang Date: Mon, 17 Dec 2018 10:38:40 +0800 Subject: [PATCH] dm: virtio-block: extend the max iov number of virtio block It is found that windows will issue blkio operation with amount of sectors in one request. This patch extends the max iov number of virtio block to 256. Tracked-On: #2962 Signed-off-by: Yu Wang Acked-by: Yin Fengwei --- devicemodel/include/block_if.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devicemodel/include/block_if.h b/devicemodel/include/block_if.h index 7b2da5361..d09fb3801 100644 --- a/devicemodel/include/block_if.h +++ b/devicemodel/include/block_if.h @@ -39,7 +39,7 @@ #include #include -#define BLOCKIF_IOV_MAX 33 /* not practical to be IOV_MAX */ +#define BLOCKIF_IOV_MAX 256 /* not practical to be IOV_MAX */ struct blockif_req { struct iovec iov[BLOCKIF_IOV_MAX];