All of lore.kernel.org
 help / color / mirror / Atom feed
* [folded-merged] mm-vmalloc-switch-to-find_unlink_vmap_area-in-vm_unmap_ram.patch removed from -mm tree
@ 2022-12-29 23:14 Andrew Morton
  0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2022-12-29 23:14 UTC (permalink / raw)
  To: mm-commits, willy, roman.gushchin, oleksiy.avramchenko, npiggin,
	lstoakes, hch, hch, bhe, urezki, akpm


The quilt patch titled
     Subject: mm: vmalloc: switch to find_unlink_vmap_area() in vm_unmap_ram()
has been removed from the -mm tree.  Its filename was
     mm-vmalloc-switch-to-find_unlink_vmap_area-in-vm_unmap_ram.patch

This patch was dropped because it was folded into mm-vmalloc-avoid-calling-__find_vmap_area-twice-in-__vunmap.patch

------------------------------------------------------
From: "Uladzislau Rezki (Sony)" <urezki@gmail.com>
Subject: mm: vmalloc: switch to find_unlink_vmap_area() in vm_unmap_ram()
Date: Thu, 22 Dec 2022 20:00:21 +0100

Switch from find_vmap_area() to find_unlink_vmap_area() to prevent a
double access to the vmap_area_lock: one for finding area, second time is
for unlinking from a tree.

Link: https://lkml.kernel.org/r/20221222190022.134380-2-urezki@gmail.com
Signed-off-by: Uladzislau Rezki (Sony) <urezki@gmail.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Lorenzo Stoakes <lstoakes@gmail.com>
Cc: Baoquan He <bhe@redhat.com>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Nicholas Piggin <npiggin@gmail.com>
Cc: Oleksiy Avramchenko <oleksiy.avramchenko@sony.com>
Cc: Roman Gushchin <roman.gushchin@linux.dev>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---


--- a/mm/vmalloc.c~mm-vmalloc-switch-to-find_unlink_vmap_area-in-vm_unmap_ram
+++ a/mm/vmalloc.c
@@ -2252,7 +2252,7 @@ void vm_unmap_ram(const void *mem, unsig
 		return;
 	}
 
-	va = find_vmap_area(addr);
+	va = find_unlink_vmap_area(addr);
 	BUG_ON(!va);
 	debug_check_no_locks_freed((void *)va->va_start,
 				    (va->va_end - va->va_start));
_

Patches currently in -mm which might be from urezki@gmail.com are

mm-vmalloc-avoid-calling-__find_vmap_area-twice-in-__vunmap.patch
mm-vmalloc-replace-bug_on-by-warn_on_once.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-12-29 23:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-29 23:14 [folded-merged] mm-vmalloc-switch-to-find_unlink_vmap_area-in-vm_unmap_ram.patch removed from -mm tree Andrew Morton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.