]> git.baikalelectronics.ru Git - kernel.git/commit
sd: use __register_blkdev to avoid a modprobe for an unregistered dev_t
authorChristoph Hellwig <hch@lst.de>
Thu, 29 Oct 2020 14:58:31 +0000 (15:58 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 16 Nov 2020 15:14:30 +0000 (08:14 -0700)
commitb09de63867b74e6f8ae2178010435e1235f4b44a
treed0eb09a4bf8dc865b396b9b77e799f6dfb33dd45
parent5ba315180e2151e488649504b44041f48a95cfdc
sd: use __register_blkdev to avoid a modprobe for an unregistered dev_t

Switch from using blk_register_region to the probe callback passed to
__register_blkdev to disable the request_module call for an unclaimed
dev_t in the SD majors.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Acked-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/scsi/sd.c