mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-30 23:52:49 +00:00
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.
This commit is contained in:
parent
134223b928
commit
675526e892
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=21013
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user