--- Begin Message ---
.
From: Alex Zarochentsev <[email protected]>
This patch fixes broken lock ordering.
Signed-off-by: Vladimir V. Saveliev <[email protected]>
fs/reiser4/txnmgr.c | 2 ++
1 files changed, 2 insertions(+)
diff -puN fs/reiser4/txnmgr.c~reiser4-lock-ordering-fix fs/reiser4/txnmgr.c
--- linux-2.6.14-mm2/fs/reiser4/txnmgr.c~reiser4-lock-ordering-fix 2005-11-15 17:18:42.000000000 +0300
+++ linux-2.6.14-mm2-vs/fs/reiser4/txnmgr.c 2005-11-15 17:18:42.000000000 +0300
@@ -2256,7 +2256,9 @@ static void fuse_not_fused_lock_owners(t
spin_lock_atom(atomh);
}
if (atomh == atomf || !atom_isopen(atomh) || !atom_isopen(atomf)) {
+ spin_unlock_atom(atomf);
atom_dec_and_unlock(atomh);
+ spin_lock_atom(atomf);
atom_dec_and_unlock(atomf);
goto repeat;
}
_
--- End Message ---
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]