Re: [PATCH 5/9] blackfin: A couple of task->mm handling fixes

2012-05-31 Thread Mike Frysinger
On Monday 23 April 2012 03:09:01 Anton Vorontsov wrote: > 1. Working with task->mm w/o getting mm or grabing the task lock is >dangerous as ->mm might disappear (exit_mm() assigns NULL under >task_lock(), so tasklist lock is not enough). that isn't a problem for this code as it specificall

[PATCH 5/9] blackfin: A couple of task->mm handling fixes

2012-04-23 Thread Anton Vorontsov
The patch fixes two problems: 1. Working with task->mm w/o getting mm or grabing the task lock is dangerous as ->mm might disappear (exit_mm() assigns NULL under task_lock(), so tasklist lock is not enough). We can't use get_task_mm()/mmput() pair as mmput() might sleep, so we have to