From: Christoph Hellwig Date: Tue, 25 May 2010 12:17:54 +0000 (+0200) Subject: virtio-blk: fix minimum number of S/G elements X-Git-Tag: v2.6.35-rc2~48^2~2 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5b365a652206ca300256974ed9301a7d241a6ed;p=pandora-kernel.git virtio-blk: fix minimum number of S/G elements We need at least one S/G element to operate properly, as does the block layer which increments it to one anyway. We hit this due to a qemu bug which advertises a sg_elements of 0 under some circumstances. Signed-off-by: Christoph Hellwig Signed-off-by: Rusty Russell (tweaked logic) --- Reading git-diff-tree failed