sd: update the bdev size in sd_revalidate_disk
authorChristoph Hellwig <hch@lst.de>
Mon, 16 Nov 2020 14:56:55 +0000 (15:56 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 16 Nov 2020 15:34:14 +0000 (08:34 -0700)
commitb200e38c493b2a5acff4f86d40a3e45d546c664c
tree5c0a1fa77c5cc9d1d10ddd061cc962a119ce0905
parent5dd55749b79cdf471ca0966ad91541daebac3e2f
sd: update the bdev size in sd_revalidate_disk

This avoids the extra call to revalidate_disk_size in sd_rescan and
is otherwise a no-op because the size did not change, or we are in
the probe path.

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