nvme: remove nvme_update_formats
authorChristoph Hellwig <hch@lst.de>
Mon, 28 Sep 2020 09:10:36 +0000 (11:10 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 7 Oct 2020 05:56:19 +0000 (07:56 +0200)
commitaf0f446d2cad06bd678e9b912f7653b63d87fd6b
tree81cfa2b072ed2c05d65f4fa2772806db93177d73
parent75eb779ee0d343d1eb6d8c19205bc76a1d3ba2ed
nvme: remove nvme_update_formats

Now that the queue is frozen before updating ->lba_shift we can't hit the
invalid references mentioned in the comment any more.  More importantly
this code would not have helped us if the format was changed by another
controller or through implementation defined back channels.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com>
drivers/nvme/host/core.c