Skip to content

Commit c8eef01

Browse files
Christoph Hellwigtorvalds
authored andcommitted
mm: remove free_unmap_vmap_area_noflush()
Patch series "reduce latency in __purge_vmap_area_lazy", v2. This patch (of 10): Sort out the long lock hold times in __purge_vmap_area_lazy. It is based on a patch from Joel. Inline free_unmap_vmap_area_noflush() it into the only caller. Link: http://lkml.kernel.org/r/1479474236-4139-2-git-send-email-hch@lst.de Signed-off-by: Christoph Hellwig <hch@lst.de> Tested-by: Jisheng Zhang <jszhang@marvell.com> Cc: Andrey Ryabinin <aryabinin@virtuozzo.com> Cc: Joel Fernandes <joelaf@google.com> Cc: Chris Wilson <chris@chris-wilson.co.uk> Cc: John Dias <joaodias@google.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: "H. Peter Anvin" <hpa@zytor.com> Cc: Ingo Molnar <mingo@elte.hu> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent b538899 commit c8eef01

1 file changed

Lines changed: 2 additions & 11 deletions

File tree

‎mm/vmalloc.c‎

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -710,23 +710,14 @@ static void free_vmap_area_noflush(struct vmap_area *va)
710710
try_purge_vmap_area_lazy();
711711
}
712712

713-
/*
714-
* Free and unmap a vmap area, caller ensuring flush_cache_vunmap had been
715-
* called for the correct range previously.
716-
*/
717-
static void free_unmap_vmap_area_noflush(struct vmap_area *va)
718-
{
719-
unmap_vmap_area(va);
720-
free_vmap_area_noflush(va);
721-
}
722-
723713
/*
724714
* Free and unmap a vmap area
725715
*/
726716
static void free_unmap_vmap_area(struct vmap_area *va)
727717
{
728718
flush_cache_vunmap(va->va_start, va->va_end);
729-
free_unmap_vmap_area_noflush(va);
719+
unmap_vmap_area(va);
720+
free_vmap_area_noflush(va);
730721
}
731722

732723
static struct vmap_area *find_vmap_area(unsigned long addr)

0 commit comments

Comments
 (0)