Skip to contentSkip to conversation

mm-dont-automatically-unregister-bdis.patch removed from -mm tree

merged [email protected] 1 participant 1 message Nov 11, 2021

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: mm: don't automatically unregister bdis
has been removed from the -mm tree. Its filename was
mm-dont-automatically-unregister-bdis.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Christoph Hellwig <[email protected]>
Subject: mm: don't automatically unregister bdis

All BDI users now unregister explicitly.

---

 mm/backing-dev.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
mm/backing-dev.c renamed from mm/backing-dev.c~mm-dont-automatically-unregister-bdis +1 -2
@@ -965,8 +965,7 @@ static void release_bdi(struct kref *ref
 	struct backing_dev_info *bdi =
 			container_of(ref, struct backing_dev_info, refcnt);
 
-	if (test_bit(WB_registered, &bdi->wb.state))
-		bdi_unregister(bdi);
+	WARN_ON_ONCE(test_bit(WB_registered, &bdi->wb.state));
 	WARN_ON_ONCE(bdi->dev);
 	wb_exit(&bdi->wb);
 	kfree(bdi);

_

Patches currently in -mm which might be from [email protected] are

mm-unexport-folio_memcg_unlock.patch mm-unexport-unlock_page_memcg.patch