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 <yu1.wang@intel.com>
Acked-by: Yin Fengwei <fengwei.yin@intel.com>
This commit is contained in:
Yu Wang 2018-12-17 10:38:40 +08:00 committed by wenlingz
parent fa7f6c2c83
commit 98dfc6f267
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@
#include <sys/uio.h>
#include <sys/unistd.h>
#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];