diff --git a/arch/s390/mm/pgtable.c b/arch/s390/mm/pgtable.c index 19338d228c9b1e4104af9e563d828bfea71fba8b..0c719c61972e5d95d52e4151b298659b57239845 100644 --- a/arch/s390/mm/pgtable.c +++ b/arch/s390/mm/pgtable.c @@ -449,6 +449,8 @@ int s390_enable_sie(void) tsk->mm = tsk->active_mm = mm; preempt_disable(); update_mm(mm, tsk); + atomic_inc(&mm->context.attach_count); + atomic_dec(&old_mm->context.attach_count); cpumask_set_cpu(smp_processor_id(), mm_cpumask(mm)); preempt_enable(); task_unlock(tsk);