OSDN Git Service

virtio_blk: make SCSI passthrough support configurable
authorChristoph Hellwig <hch@lst.de>
Sat, 28 Jan 2017 08:32:53 +0000 (09:32 +0100)
committerJens Axboe <axboe@fb.com>
Tue, 31 Jan 2017 17:53:10 +0000 (10:53 -0700)
commit97b50a654d5de505ccf972c6b7ea7bfda1c0c475
tree95ea8c487520cca26e825c5e7272714086034d54
parent85dada09eeb31c0eb183e4b2fac01b2381706b79
virtio_blk: make SCSI passthrough support configurable

The SCSI passthrough idea was a a bad idea to start with (guess who came
up with it?), and has been removed from the virtio 1.O spec, and is not
enabled by defauly by any host I know of.  Add a separate config option
for it so that we don't need to enable it for most setups.  That way
any bugs related to it (like the one recently fixed for vmapped stacks)
do not affect other users, and the size of the virtblk_req structure
also shrinks significantly.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/Kconfig
drivers/block/virtio_blk.c