X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Faio.c;h=4f641abac3c0927f2036f81f3f70106a57a09e22;hb=97de50c0add1e8f3b4e764c66a13c07235fee631;hp=06d7d4390fe7dd8562e8433ce3a29b2b9ee4e241;hpb=e9dd2561793c05d70c9df1bc16a2dde6f23388df;p=linux-2.6 diff --git a/fs/aio.c b/fs/aio.c index 06d7d4390f..4f641abac3 100644 --- a/fs/aio.c +++ b/fs/aio.c @@ -567,6 +567,10 @@ static void use_mm(struct mm_struct *mm) atomic_inc(&mm->mm_count); tsk->mm = mm; tsk->active_mm = mm; + /* + * Note that on UML this *requires* PF_BORROWED_MM to be set, otherwise + * it won't work. Update it accordingly if you change it here + */ activate_mm(active_mm, mm); task_unlock(tsk);