summaryrefslogtreecommitdiff
path: root/sys/kern/vfs_lockf.c
AgeCommit message (Collapse)Author
2005-11-20Use ANSI function declarations and deregister, no binary changePedro Martelletto
2005-03-15revise lockf limit policy. after exceeding "soft limit", start enforcingTed Unangst
a hard limit of 2x. add a comment to this effect. reviewed by miod
2005-03-10split out uidinfo from kern_proc.c private, use it to store lock count,Ted Unangst
restrict lock count per uid to a global limit, add sysctl to adjust limit. this prevents a user from creating too many locks. problem noticed by devon o'dell. ok deraadt miod pedro
2004-04-13useless caddr_t cast removal. same md5s.Ted Unangst
2004-01-14Get rid of M_LOCKF and use pool for allocating lockf structures.Alexander Yurchenko
From NetBSD. Tested by many people, ok art@.
2003-07-21remove caddr_t casts. it's just silly to cast something when the functionTed Unangst
takes a void *. convert uiomove to take a void * as well. ok deraadt@
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2001-09-05use %ll instead of %qTheo de Raadt
2001-07-28Check for negative lock length.Grigoriy Orlov
costa@ ok.
2001-06-20Fix PR1826. tsleep in lf_setlock can return 0 if process was ptrace'd,Grigoriy Orlov
but not wakeup'ed. In this case one entry can be placed twice at list of blocked locks. As a result block list contain an entry which points to itself. lf_wakelock can't remove such an entry and system livelocks trying to remove a bad entry from block list. Other changes include: - repair debug functions and make vfs_lockf.c compilable with LOCKF_DEBUG - simplify debug printing and remove useless debugging - remove unnecessary casting, replace NOLOCKF with NULL - free -> FREE (use one form over the file) - convert list of blocked locks to use TAILQ_* macroses - lf_addblock() -> TAILQ_INSERT_TAIL - Fix bug in lf_findoverlap(): in old code if (end == -1) && (lf->lf_end == -1) && (lf->lf_start <= start) then lf_findoverlap() return 4 instead of 2 - work more carefully with pointers (probably fix one or two bugs) - use wakeup_one() - KNF
1996-03-03From NetBSD: 960217 mergeNiklas Hallqvist
1995-10-18initial import of NetBSD treeTheo de Raadt