[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <461A0DDC.5060709@sw.ru>
Date: Mon, 09 Apr 2007 13:56:44 +0400
From: Pavel Emelianov <xemul@...ru>
To: Andrew Morton <akpm@...l.org>
CC: Ingo Molnar <mingo@...hat.com>,
Arjan van de Ven <arjan@...ux.intel.com>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: [PATCH] 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.
View attachment "diff-lockdep-rwsem-trylock" of type "text/plain" (357 bytes)
Powered by blists - more mailing lists