[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1478617545-8443-2-git-send-email-aryabinin@virtuozzo.com>
Date: Tue, 8 Nov 2016 18:05:44 +0300
From: Andrey Ryabinin <aryabinin@...tuozzo.com>
To: Christoph Hellwig <hch@....de>
CC: Andrew Morton <akpm@...ux-foundation.org>, <linux-mm@...ck.org>,
<linux-rt-users@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
"Andrey Ryabinin" <aryabinin@...tuozzo.com>,
Andy Lutomirski <luto@...nel.org>,
"Joel Fernandes" <joelaf@...gle.com>,
Jisheng Zhang <jszhang@...vell.com>,
"Chris Wilson" <chris@...is-wilson.co.uk>,
John Dias <joaodias@...gle.com>,
"Thomas Gleixner" <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>,
"H. Peter Anvin" <hpa@...or.com>, <x86@...nel.org>
Subject: [PATCH 2/3] 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.
Signed-off-by: Andrey Ryabinin <aryabinin@...tuozzo.com>
Cc: Andy Lutomirski <luto@...nel.org>
Cc: Joel Fernandes <joelaf@...gle.com>
Cc: Christoph Hellwig <hch@....de>
Cc: Jisheng Zhang <jszhang@...vell.com>
Cc: Chris Wilson <chris@...is-wilson.co.uk>
Cc: John Dias <joaodias@...gle.com>
Cc: Thomas Gleixner <tglx@...utronix.de>
Cc: Ingo Molnar <mingo@...hat.com>
Cc: "H. Peter Anvin" <hpa@...or.com>
Cc: x86@...nel.org
---
kernel/fork.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/fork.c b/kernel/fork.c
index fd85c68..417e94f 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -229,7 +229,7 @@ static inline void free_thread_stack(struct task_struct *tsk)
}
local_irq_restore(flags);
- vfree(tsk->stack);
+ vfree_atomic(tsk->stack);
return;
}
#endif
--
2.7.3
Powered by blists - more mailing lists