]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd7d42f1f762f9743098f7a17b56020ecf7ff1b9d
treeb346aaea87152271e5686f7ca40176bff6dc476f
parent51e827e3f9fa00df52e99f062f3543f1a7f4f94f
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