The patch titled Subject: mtd: call bdi_unregister explicitly has been added to the -mm tree. Its filename is mtd-call-bdi_unregister-explicitly.patch This patch should soon appear at https://ozlabs.org/~akpm/mmots/broken-out/mtd-call-bdi_unregister-explicitly.patch and later at https://ozlabs.org/~akpm/mmotm/broken-out/mtd-call-bdi_unregister-explicitly.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Christoph Hellwig <hch@xxxxxx> Subject: mtd: call bdi_unregister explicitly Call bdi_unregister explicitly instead of relying on the automatic unregistration. Link: https://lkml.kernel.org/r/20211021124441.668816-3-hch@xxxxxx Signed-off-by: Christoph Hellwig <hch@xxxxxx> Cc: Jan Kara <jack@xxxxxxx> Cc: Miquel Raynal <miquel.raynal@xxxxxxxxxxx> Cc: Richard Weinberger <richard@xxxxxx> Cc: Vignesh Raghavendra <vigneshr@xxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/mtd/mtdcore.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/mtd/mtdcore.c~mtd-call-bdi_unregister-explicitly +++ a/drivers/mtd/mtdcore.c @@ -2409,6 +2409,7 @@ static void __exit cleanup_mtd(void) if (proc_mtd) remove_proc_entry("mtd", NULL); class_unregister(&mtd_class); + bdi_unregister(mtd_bdi); bdi_put(mtd_bdi); idr_destroy(&mtd_idr); } _ Patches currently in -mm which might be from hch@xxxxxx are mm-dont-include-linux-daxh-in-linux-mempolicyh.patch mm-export-bdi_unregister.patch mtd-call-bdi_unregister-explicitly.patch fs-explicitly-unregister-per-superblock-bdis.patch mm-dont-automatically-unregister-bdis.patch mm-simplify-bdi-refcounting.patch mm-unexport-folio_memcg_unlock.patch mm-unexport-unlock_page_memcg.patch