nvme: forward port sysfs delete fix
authorKeith Busch <kbusch@kernel.org>
Thu, 15 Jun 2023 15:17:57 +0000 (08:17 -0700)
committerKeith Busch <kbusch@kernel.org>
Fri, 16 Jun 2023 15:15:57 +0000 (08:15 -0700)
commit1c606f7f056b266a84482d5522d35bbbbed062db
tree84bc4070b8effb9a836881db3d2caae85216b62b
parentc917dd96fe41c2fb2a4b606372bf64ec5661f509
nvme: forward port sysfs delete fix

We had a late fix that modified nvme_sysfs_delete() after the staging
branch for the next merge window relocated the function to a new file.
Port commit 2eb94dd56a4a4 ("nvme: do not let the user delete a ctrl
before a complete") to the latest to avoid a potentially confusing merge
conflict.

Cc: Maurizio Lombardi <mlombard@redhat.com>
Cc: Max Gurtovoy <mgurtovoy@nvidia.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/sysfs.c