[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170412124905.25443-4-aryabinin@virtuozzo.com>
Date: Wed, 12 Apr 2017 15:49:03 +0300
From: Andrey Ryabinin <aryabinin@...tuozzo.com>
To: Andrew Morton <akpm@...ux-foundation.org>
CC: <linux-kernel@...r.kernel.org>,
Andrey Ryabinin <aryabinin@...tuozzo.com>,
<penguin-kernel@...ove.SAKURA.ne.jp>, <mhocko@...nel.org>,
<linux-mm@...ck.org>, <hpa@...or.com>, <chris@...is-wilson.co.uk>,
<hch@....de>, <mingo@...e.hu>, <jszhang@...vell.com>,
<joelaf@...gle.com>, <joaodias@...gle.com>, <willy@...radead.org>,
<tglx@...utronix.de>, <thellstrom@...are.com>
Subject: [PATCH v2 3/5] kernel/fork: use vfree() instead of vfree_atomic() to free thread stack
vfree() can be used in any atomic context now, thus there is no point
in using vfree_atomic().
This reverts commit 0f110a9b956c ("kernel/fork: use vfree_atomic()
to free thread stack")
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 81347bd..e4baa21 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -259,7 +259,7 @@ static inline void free_thread_stack(struct task_struct *tsk)
}
local_irq_restore(flags);
- vfree_atomic(tsk->stack);
+ vfree(tsk->stack);
return;
}
#endif
--
2.10.2
Powered by blists - more mailing lists