DragonFly BSD
DragonFly bugs List (threaded) for 2006-08
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Patch to try - Re: Sendmail rset command hangs socket on 1.6-Release


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Wed, 2 Aug 2006 10:25:39 -0700 (PDT)

    Please try this patch and tell me if it works.  I think we have an issue
    when one process holds an exclusive lock while 2 or more processes are
    trying to get a shared lock, or vise-versa.

						-Matt

Index: kern_lockf.c
===================================================================
RCS file: /cvs/src/sys/kern/kern_lockf.c,v
retrieving revision 1.32
diff -u -r1.32 kern_lockf.c
--- kern_lockf.c	25 Jul 2006 20:01:50 -0000	1.32
+++ kern_lockf.c	2 Aug 2006 17:23:56 -0000
@@ -772,8 +772,10 @@
 		TAILQ_REMOVE(&lock->lf_blocked, range, lf_link);
 		range->lf_flags = 1;
 		wakeup(range);
+#if 0
 		if (range->lf_start >= start && range->lf_end <= end)
 			break;
+#endif
 	}
 }
 



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]