]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
nvme: freeze the queue over ->lba_shift updates
authorSasha Levin <sashal@kernel.org>
Sun, 15 Nov 2020 22:07:55 +0000 (17:07 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Nov 2020 18:22:22 +0000 (19:22 +0100)
commit09d90dbab25d6e855118e8f3951e292bd35bcf79
tree8d5316da6570b72d16cda8e485aeae8e9aad3cce
parent9163d630e435ab5c9c663da991ffcaa3dc7de6e5
nvme: freeze the queue over ->lba_shift updates

[ Upstream commit f9d5f4579feafa721dba2f350fc064a1852c6f8c ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/nvme/host/core.c