From: Hannes Reinecke Date: Mon, 18 May 2009 12:41:30 +0000 (+0200) Subject: virtio_blk: SG_IO passthru support X-Git-Tag: v2.6.31-rc1~389^2~51 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1cde26f928863d90e9e7c1217880c8450464d305;p=pandora-kernel.git virtio_blk: SG_IO passthru support Add support for SG_IO passthru to virtio_blk. We add the scsi command block after the normal outhdr, and the scsi inhdr with full status information aswell as the sense buffer before the regular inhdr. [hch: forward ported, added the VIRTIO_BLK_F_SCSI flags, some comments and tested the whole beast] [axboe: updated to use ->resid and not dual-path the byte count] Signed-off-by: Hannes Reinecke Signed-off-by: Christoph Hellwig Signed-off-by: Rusty Russell (+ checkpatch.pl tweak) Signed-off-by: Jens Axboe --- Reading git-diff-tree failed