login
Header Space

 
 

Re: HAMMER update - 12/31/2007

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <kernel@...>
Date: Sunday, January 6, 2008 - 12:29 pm

On Mon, Dec 31, 2007 at 05:19:25PM -0800, Matthew Dillon wrote:

Probably it's still too early to report bugs, but...

Index: hammer_subs.c
===================================================================
RCS file: /home/source/dragonfly/cvs/src/sys/vfs/hammer/hammer_subs.c,v
retrieving revision 1.10
diff -u -r1.10 hammer_subs.c
--- hammer_subs.c	1 Jan 2008 01:00:03 -0000	1.10
+++ hammer_subs.c	6 Jan 2008 10:10:26 -0000
@@ -72,8 +72,10 @@
 	KKASSERT(lock->refs > 0);
 	crit_enter();
 	if (lock->locktd != td) {
-		if (lock->locktd != NULL || lock->lockcount)
+		if (lock->locktd != NULL || lock->lockcount) {
+			crit_exit();
 			return(EAGAIN);
+		}
 		lock->locktd = td;
 	}
 	KKASSERT(lock->lockcount >= 0);

Cheers,
YONETANI Tomokazu
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
HAMMER update - 12/31/2007, Matthew Dillon, (Mon Dec 31, 9:19 pm)
Re: HAMMER update - 12/31/2007, YONETANI Tomokazu, (Sun Jan 6, 12:29 pm)
speck-geostationary