sg: do not allocate a gendisk
authorChristoph Hellwig <hch@lst.de>
Mon, 16 Aug 2021 13:19:04 +0000 (15:19 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 23 Aug 2021 18:54:30 +0000 (12:54 -0600)
commitaebbb5831fbd5352fd9bd2c858bc249026d3c652
treeb346aaea87152271e5686f7ca40176bff6dc476f
parent45938335d0a9773d65a82a7ca722bb76e4b997a8
sg: do not allocate a gendisk

sg is a character driver and thus does not need to allocate a gendisk,
which is only used for file system-like block layer I/O on block
devices.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Luis Chamberlain <mcgrof@kernel.org>
Link: https://lore.kernel.org/r/20210816131910.615153-4-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/scsi/sg.c