]> git.baikalelectronics.ru Git - kernel.git/commit
virtio_blk: SG_IO passthru support
authorHannes Reinecke <hare@suse.de>
Mon, 18 May 2009 12:41:30 +0000 (14:41 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Mon, 18 May 2009 12:41:30 +0000 (14:41 +0200)
commit72ad484f0a1a6b5b2b5af2ab43ccbd8d3b7bbd9c
treee0f6e5157cccc8ab8b87b1192a1da6ddc6113e82
parentf414dc86bb204420add4f0c60723358c10d1496e
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 <hare@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (+ checkpatch.pl tweak)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
drivers/block/virtio_blk.c
include/linux/virtio_blk.h