Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ed367fc3 authored by Christoph Lameter's avatar Christoph Lameter Committed by Linus Torvalds
Browse files

quicklists: do not release off node pages early



quicklists must keep even off node pages on the quicklists until the TLB
flush has been completed.

Signed-off-by: default avatarChristoph Lameter <clameter@sgi.com>
Cc: Dhaval Giani <dhaval@linux.vnet.ibm.com>
Cc: <stable@kernel.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 5b825ed2
Loading
Loading
Loading
Loading
+0 −8
Original line number Original line Diff line number Diff line
@@ -56,14 +56,6 @@ static inline void __quicklist_free(int nr, void (*dtor)(void *), void *p,
	struct page *page)
	struct page *page)
{
{
	struct quicklist *q;
	struct quicklist *q;
	int nid = page_to_nid(page);

	if (unlikely(nid != numa_node_id())) {
		if (dtor)
			dtor(p);
		__free_page(page);
		return;
	}


	q = &get_cpu_var(quicklist)[nr];
	q = &get_cpu_var(quicklist)[nr];
	*(void **)p = q->page;
	*(void **)p = q->page;