Pavel Emelianov 428e6ce023 Lockdep treats down_write_trylock like regular down_write
This causes constructions like

down_write(&mm1->mmap_sem);
if (down_write_trylock(&mm2->mmap_sem)) {
       ...
       up_write(&mm2->mmap_sem);
}
up_write(&mm1->mmap_sem);

generate a lockdep warning about circular locking dependence.

Call rwsem_acquire() with trylock set to 1.

Cc: Ingo Molnar <mingo@elte.hu>
Cc: Arjan van de Ven <arjan@infradead.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-08 11:15:09 -07:00
..
2006-09-11 13:32:30 -04:00
2007-02-11 10:51:32 -08:00
2007-05-08 11:15:03 -07:00
2006-12-07 08:39:36 -08:00
2007-05-08 11:15:07 -07:00
2007-05-08 11:15:08 -07:00
2006-12-04 02:00:22 -05:00
2007-05-08 11:15:08 -07:00
2006-09-29 09:18:12 -07:00
2007-05-08 11:15:06 -07:00
2005-04-16 15:20:36 -07:00
2007-05-07 12:12:59 -07:00
2007-05-08 11:15:02 -07:00
2007-05-08 11:15:06 -07:00
2006-12-07 08:39:25 -08:00
2006-07-10 13:24:25 -07:00