lockdep: Fix lockdep annotation for pipe_double_lock()
commit023d43c7b5a23a81fe8afa9f37296f8ed4be11fb
authorPeter Zijlstra <peterz@infradead.org>
Tue, 21 Jul 2009 08:09:23 +0000 (21 10:09 +0200)
committerPeter Zijlstra <a.p.zijlstra@chello.nl>
Wed, 22 Jul 2009 19:14:14 +0000 (22 21:14 +0200)
treea817c4765d17c5d7facb66ae43cbc2b04c28c05b
parentaea1f7964ae6cba5eb419a958956deb9016b3341
lockdep: Fix lockdep annotation for pipe_double_lock()

The presumed use of the pipe_double_lock() routine is to lock 2 locks in
a deadlock free way by ordering the locks by their address. However it
fails to keep the specified lock classes in order and explicitly
annotates a deadlock.

Rectify this.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Acked-by: Miklos Szeredi <mszeredi@suse.cz>
LKML-Reference: <1248163763.15751.11098.camel@twins>
fs/pipe.c