nvme: freeze the queue over ->lba_shift updates
authorChristoph Hellwig <hch@lst.de>
Mon, 28 Sep 2020 10:11:42 +0000 (12:11 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 7 Oct 2020 05:56:18 +0000 (07:56 +0200)
commitf9d5f4579feafa721dba2f350fc064a1852c6f8c
tree0ba5a6ebdd7676008f8bebe6d2430cca9581769c
parentd4609ea8b3d3fb3423f35805843a82774cb4ef2f
nvme: freeze the queue over ->lba_shift updates

Ensure that there can't be any I/O in flight went we change the disk
geometry in nvme_update_ns_info, most notable the LBA size by lifting
the queue free from nvme_update_disk_info into the caller

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