aboutsummaryrefslogtreecommitdiff
path: root/arch/s390/kernel/process.c
diff options
context:
space:
mode:
authorHeiko Carstens2017-09-11 11:24:23 +0200
committerMartin Schwidefsky2017-09-28 07:29:40 +0200
commit7b83c6297d2fc7350997e86188df84c27fd59530 (patch)
treea9a849d6ab1195c06053ad215e50e9cb3dce9d8d /arch/s390/kernel/process.c
parent5ef2d5231d547c672c67bdf84c13a4adaf477964 (diff)
s390/guarded storage: simplify task exit handling
Free data structures required for guarded storage from arch_release_task_struct(). This allows to simplify the code a bit, and also makes the semantics a bit easier: arch_release_task_struct() is never called from the task that is being removed. In addition this allows to get rid of exit_thread() in a later patch. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/kernel/process.c')
-rw-r--r--arch/s390/kernel/process.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/s390/kernel/process.c b/arch/s390/kernel/process.c
index a7c6c5e944c7..0ecadd349106 100644
--- a/arch/s390/kernel/process.c
+++ b/arch/s390/kernel/process.c
@@ -48,8 +48,6 @@ extern void kernel_thread_starter(void);
*/
void exit_thread(struct task_struct *tsk)
{
- if (tsk == current)
- exit_thread_gs();
}
void flush_thread(void)
@@ -59,6 +57,7 @@ void flush_thread(void)
void arch_release_task_struct(struct task_struct *tsk)
{
runtime_instr_release(tsk);
+ guarded_storage_release(tsk);
}
int arch_dup_task_struct(struct task_struct *dst, struct task_struct *src)