mm-commits.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [merged] kernel-fork-use-vfree_atomic-to-free-thread-stack.patch removed from -mm tree
@ 2016-12-14 19:25 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2016-12-14 19:25 UTC (permalink / raw)
  To: aryabinin, chris, hch, hpa, joaodias, joelaf, jszhang, mingo,
	tglx, mm-commits


The patch titled
     Subject: kernel/fork: use vfree_atomic() to free thread stack
has been removed from the -mm tree.  Its filename was
     kernel-fork-use-vfree_atomic-to-free-thread-stack.patch

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

------------------------------------------------------
From: Andrey Ryabinin <aryabinin@virtuozzo.com>
Subject: kernel/fork: use vfree_atomic() to free thread stack

vfree() is going to use sleeping lock. Thread stack freed in atomic
context, therefore we must use vfree_atomic() here.

Link: http://lkml.kernel.org/r/1479474236-4139-6-git-send-email-hch@lst.de
Signed-off-by: Andrey Ryabinin <aryabinin@virtuozzo.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Cc: Joel Fernandes <joelaf@google.com>
Cc: Jisheng Zhang <jszhang@marvell.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>
---

 kernel/fork.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN kernel/fork.c~kernel-fork-use-vfree_atomic-to-free-thread-stack kernel/fork.c
--- a/kernel/fork.c~kernel-fork-use-vfree_atomic-to-free-thread-stack
+++ a/kernel/fork.c
@@ -229,7 +229,7 @@ static inline void free_thread_stack(str
 		}
 		local_irq_restore(flags);
 
-		vfree(tsk->stack);
+		vfree_atomic(tsk->stack);
 		return;
 	}
 #endif
_

Patches currently in -mm which might be from aryabinin@virtuozzo.com are



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

only message in thread, other threads:[~2016-12-14 19:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-14 19:25 [merged] kernel-fork-use-vfree_atomic-to-free-thread-stack.patch removed from -mm tree akpm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).