Commit c8eef01e authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Linus Torvalds

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.deSigned-off-by: default avatarChristoph Hellwig <hch@lst.de>
Tested-by: default avatarJisheng 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: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent b5388998
...@@ -710,23 +710,14 @@ static void free_vmap_area_noflush(struct vmap_area *va) ...@@ -710,23 +710,14 @@ static void free_vmap_area_noflush(struct vmap_area *va)
try_purge_vmap_area_lazy(); try_purge_vmap_area_lazy();
} }
/*
* Free and unmap a vmap area, caller ensuring flush_cache_vunmap had been
* called for the correct range previously.
*/
static void free_unmap_vmap_area_noflush(struct vmap_area *va)
{
unmap_vmap_area(va);
free_vmap_area_noflush(va);
}
/* /*
* Free and unmap a vmap area * Free and unmap a vmap area
*/ */
static void free_unmap_vmap_area(struct vmap_area *va) static void free_unmap_vmap_area(struct vmap_area *va)
{ {
flush_cache_vunmap(va->va_start, va->va_end); flush_cache_vunmap(va->va_start, va->va_end);
free_unmap_vmap_area_noflush(va); unmap_vmap_area(va);
free_vmap_area_noflush(va);
} }
static struct vmap_area *find_vmap_area(unsigned long addr) static struct vmap_area *find_vmap_area(unsigned long addr)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment