X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Faio.c;h=4f641abac3c0927f2036f81f3f70106a57a09e22;hb=db400b3c4ee89d384d9163836a55577abdae772d;hp=06d7d4390fe7dd8562e8433ce3a29b2b9ee4e241;hpb=f7f24758ac98a506770bc5910d33567610fa3403;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);