summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/sd.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-09-01 17:57:45 +0200
committerJens Axboe <axboe@kernel.dk>2020-09-02 16:00:07 +0200
commitb55d3d21a05d5558440515c1a73d87bc4b1fa17c (patch)
tree94c8bf578e9965464826a885a4f36b17de286f5e /drivers/scsi/sd.c
parentblock: use revalidate_disk_size in set_capacity_revalidate_and_notify (diff)
downloadlinux-b55d3d21a05d5558440515c1a73d87bc4b1fa17c.tar.xz
linux-b55d3d21a05d5558440515c1a73d87bc4b1fa17c.zip
nvme: opencode revalidate_disk in nvme_validate_ns
Keep control in the NVMe driver instead of going through an indirect call back into ->revalidate_disk. Also reorder the function a bit to be easier to follow with the additional code. And now that we have removed all callers of revalidate_disk() in the nvme code, ->revalidate_disk is only called from the open code when first opening the device. Which is of course totally pointless as we have a valid size since the initial scan, and will get an updated view through the asynchronous notifiation everytime the size changes. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Josef Bacik <josef@toxicpanda.com> Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/scsi/sd.c')
0 files changed, 0 insertions, 0 deletions