Skip to content

Commit 80f2180

Browse files
Mohamed Khalfellaaxboe
authored andcommitted
nvmet: exit debugfs after discovery subsystem exits
Commit 5285899 ("nvmet: initialize discovery subsys after debugfs is initialized") changed nvmet_init() to initialize nvme discovery after "nvmet" debugfs directory is initialized. The change broke nvmet_exit() because discovery subsystem now depends on debugfs. Debugfs should be destroyed after discovery subsystem. Fix nvmet_exit() to do that. Reported-by: Yi Zhang <yi.zhang@redhat.com> Closes: https://lore.kernel.org/all/CAHj4cs96AfFQpyDKF_MdfJsnOEo=2V7dQgqjFv+k3t7H-=yGhA@mail.gmail.com/ Fixes: 5285899 ("nvmet: initialize discovery subsys after debugfs is initialized") Signed-off-by: Mohamed Khalfella <mkhalfella@purestorage.com> Reviewed-by: Hannes Reinecke <hare@suse.de> Reviewed-by: Daniel Wagner <dwagner@suse.de> Link: https://lore.kernel.org/r/20250807053507.2794335-1-mkhalfella@purestorage.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 407728d commit 80f2180

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/nvme/target/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1992,8 +1992,8 @@ static int __init nvmet_init(void)
19921992
static void __exit nvmet_exit(void)
19931993
{
19941994
nvmet_exit_configfs();
1995-
nvmet_exit_debugfs();
19961995
nvmet_exit_discovery();
1996+
nvmet_exit_debugfs();
19971997
ida_destroy(&cntlid_ida);
19981998
destroy_workqueue(nvmet_wq);
19991999
destroy_workqueue(buffered_io_wq);

0 commit comments

Comments
 (0)