>From aa00ad3b28701839f732533f8ac098c8f8d0b065 Mon Sep 17 00:00:00 2001 From: Vadim Rozenfeld <vrozenfe@xxxxxxxxxx> Date: Mon, 2 May 2011 14:52:18 +0300 Subject: [COMMIT] [viostor] adjust device queue depth according to virtual queue size when working in indirect mode --- viostor/virtio_stor.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/viostor/virtio_stor.c b/viostor/virtio_stor.c index 0e683c0..be5bd05 100644 --- a/viostor/virtio_stor.c +++ b/viostor/virtio_stor.c @@ -385,7 +385,7 @@ VirtIoFindAdapter( adaptExt->indirect = CHECKBIT(adaptExt->features, VIRTIO_RING_F_INDIRECT_DESC); } if(adaptExt->indirect) { - adaptExt->queue_depth <<= 1; + adaptExt->queue_depth = pageNum; } #endif RhelDbgPrint(TRACE_LEVEL_INFORMATION, ("breaks_number = %x queue_depth = %x\n", -- 1.7.0.2.msysgit.0 -- To unsubscribe from this list: send the line "unsubscribe kvm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html