summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1996-12-29 09:22:34 +0000
committerdg <dg@FreeBSD.org>1996-12-29 09:22:34 +0000
commit274e36e5de7b7890454f266ecdff0dccf2ae50be (patch)
tree97469d8379e656d0a240f48433a5a51c7b9eaa76 /sys
parent7433bf787de8a4d6e8231fe4c64a81d0034340e4 (diff)
downloadFreeBSD-src-274e36e5de7b7890454f266ecdff0dccf2ae50be.zip
FreeBSD-src-274e36e5de7b7890454f266ecdff0dccf2ae50be.tar.gz
Delete bogus inconsistency check that could cause a gratuitous panic. I
had added this years ago when I didn't understand all the subtilties of the flock code.
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/kern_lockf.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/sys/kern/kern_lockf.c b/sys/kern/kern_lockf.c
index ffe31b1..00b5369 100644
--- a/sys/kern/kern_lockf.c
+++ b/sys/kern/kern_lockf.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)ufs_lockf.c 8.3 (Berkeley) 1/6/94
- * $Id: kern_lockf.c,v 1.6 1996/09/03 14:21:52 bde Exp $
+ * $Id: kern_lockf.c,v 1.7 1996/12/19 13:22:30 bde Exp $
*/
#include <sys/param.h>
@@ -271,13 +271,6 @@ lf_setlock(lock)
block->lf_block = block->lf_block->lf_block;
break;
}
- /*
- * If we did not find ourselves on the list, but
- * are still linked onto a lock list, then something
- * is very wrong.
- */
- if (block == NOLOCKF && lock->lf_next != NOLOCKF)
- panic("lf_setlock: lost lock");
free(lock, M_LOCKF);
return (error);
}
OpenPOWER on IntegriCloud