public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [Fwd: [PATCH 5/8] reiser4-lock-ordering-fix.patch]
@ 2005-11-16  8:57 Hans Reiser
  0 siblings, 0 replies; only message in thread
From: Hans Reiser @ 2005-11-16  8:57 UTC (permalink / raw)
  To: LKML, vs, Andrew Morton

[-- Attachment #1: Type: text/plain, Size: 1 bytes --]



[-- Attachment #2: [PATCH 5/8] reiser4-lock-ordering-fix.patch --]
[-- Type: message/rfc822, Size: 2053 bytes --]

[-- Attachment #2.1.1: Type: text/plain, Size: 2 bytes --]

.

[-- Attachment #2.1.2: reiser4-lock-ordering-fix.patch --]
[-- Type: text/plain, Size: 775 bytes --]


From: Alex Zarochentsev <zam@namesys.com>

This patch fixes broken lock ordering.

Signed-off-by: Vladimir V. Saveliev <vs@namesys.com>


 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;
 		}

_

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-11-16  8:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-16  8:57 [Fwd: [PATCH 5/8] reiser4-lock-ordering-fix.patch] Hans Reiser

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox