diff options
Diffstat (limited to 'arch/s390/mm/pgtable.c')
-rw-r--r-- | arch/s390/mm/pgtable.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/arch/s390/mm/pgtable.c b/arch/s390/mm/pgtable.c index c60bfb309ce6..2757c5616a07 100644 --- a/arch/s390/mm/pgtable.c +++ b/arch/s390/mm/pgtable.c | |||
@@ -279,7 +279,10 @@ int s390_enable_sie(void) | |||
279 | /* lets check if we are allowed to replace the mm */ | 279 | /* lets check if we are allowed to replace the mm */ |
280 | task_lock(tsk); | 280 | task_lock(tsk); |
281 | if (!tsk->mm || atomic_read(&tsk->mm->mm_users) > 1 || | 281 | if (!tsk->mm || atomic_read(&tsk->mm->mm_users) > 1 || |
282 | tsk->mm != tsk->active_mm || !hlist_empty(&tsk->mm->ioctx_list)) { | 282 | #ifdef CONFIG_AIO |
283 | !hlist_empty(&tsk->mm->ioctx_list) || | ||
284 | #endif | ||
285 | tsk->mm != tsk->active_mm) { | ||
283 | task_unlock(tsk); | 286 | task_unlock(tsk); |
284 | return -EINVAL; | 287 | return -EINVAL; |
285 | } | 288 | } |
@@ -295,7 +298,10 @@ int s390_enable_sie(void) | |||
295 | /* Now lets check again if something happened */ | 298 | /* Now lets check again if something happened */ |
296 | task_lock(tsk); | 299 | task_lock(tsk); |
297 | if (!tsk->mm || atomic_read(&tsk->mm->mm_users) > 1 || | 300 | if (!tsk->mm || atomic_read(&tsk->mm->mm_users) > 1 || |
298 | tsk->mm != tsk->active_mm || !hlist_empty(&tsk->mm->ioctx_list)) { | 301 | #ifdef CONFIG_AIO |
302 | !hlist_empty(&tsk->mm->ioctx_list) || | ||
303 | #endif | ||
304 | tsk->mm != tsk->active_mm) { | ||
299 | mmput(mm); | 305 | mmput(mm); |
300 | task_unlock(tsk); | 306 | task_unlock(tsk); |
301 | return -EINVAL; | 307 | return -EINVAL; |