[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1479474236-4139-6-git-send-email-hch@lst.de>
Date: Fri, 18 Nov 2016 14:03:51 +0100
From: Christoph Hellwig <hch@....de>
To: akpm@...ux-foundation.org
Cc: aryabinin@...tuozzo.com, joelaf@...gle.com, jszhang@...vell.com,
chris@...is-wilson.co.uk, joaodias@...gle.com, linux-mm@...ck.org,
linux-rt-users@...r.kernel.org, x86@...nel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH 05/10] kernel/fork: use vfree_atomic() to free thread stack
From: Andrey Ryabinin <aryabinin@...tuozzo.com>
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>
---
kernel/fork.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/fork.c b/kernel/fork.c
index 997ac1d..cfee5ec 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.1.4
Powered by blists - more mailing lists