cvs commit: src/sys/boot/pc98/boot2 inode.h src/sys/i386/boot/dosboot inode.h src/sys/kern kern_lockf.c kern_mib.c kern_prot.c kern_resource.c subr_param.c src/sys/sys fcntl.h lockf.h proc.h resource.h resourcevar.h sysctl.h src/sys/vfs/isofs/cd9660 ...

Joerg Sonnenberger joerg at
Mon May 3 09:07:17 PDT 2004

joerg       2004/05/03 09:06:27 PDT

DragonFly src repository

  Modified files:
    sys/boot/pc98/boot2  inode.h 
    sys/i386/boot/dosboot inode.h 
    sys/kern             kern_lockf.c kern_mib.c kern_prot.c 
                         kern_resource.c subr_param.c 
    sys/sys              fcntl.h lockf.h proc.h resource.h 
                         resourcevar.h sysctl.h 
    sys/vfs/isofs/cd9660 cd9660_node.h 
    sys/vfs/nfs          nfsnode.h 
    sys/vfs/smbfs        smbfs_node.h 
    sys/vfs/ufs          inode.h 
  POSIX lock resource limit part 3/4
  This splits "struct lockf" into the general book-keeping of ranges and
  blocked request and the "struct lockf_range" which constists of the data
  for a specific range. Adjust the interface of lf_advlock to remove one
  level of pointer indirection and embedded "struct lockf" directly in the
  inodes. Don't mess with wait channels any more.
  Change the algorithm for determing locks to a more direct approach, which
  both simplifies the lock acquisition and proper book-keeping of the number
  of ranges currently used. The later is necessary to prevent local resource
  The code is not fully malloc block-safe, but as good or bad as
  the old code.
  Add the kernel part of the posixlocks rlimit. This is the maximum number of
  POSIX lock ranges any user can acquire. These numbers are tracked for each
  user and process and checked at lock/unlock time. If a process changes uid,
  its locks are transfered to the new uid which can effectivly boost that
  number above the limit.
  This is based on the patch set from Devon H. O'Dell <dodell at xxxxxxxxxxxxxxx>
  for the general infrastructure with some adjustment to better integrate with
  the new lockf code.
  Revision  Changes    Path
  1.2       +1 -1      src/sys/boot/pc98/boot2/inode.h
  1.5       +1 -1      src/sys/i386/boot/dosboot/inode.h
  1.7       +561 -607  src/sys/kern/kern_lockf.c
  1.8       +4 -0      src/sys/kern/kern_mib.c
  1.16      +2 -0      src/sys/kern/kern_prot.c
  1.20      +8 -0      src/sys/kern/kern_resource.c
  1.5       +7 -1      src/sys/kern/subr_param.c
  1.6       +1 -0      src/sys/sys/fcntl.h
  1.4       +18 -21    src/sys/sys/lockf.h
  1.49      +1 -0      src/sys/sys/proc.h
  1.6       +3 -1      src/sys/sys/resource.h
  1.7       +1 -0      src/sys/sys/resourcevar.h
  1.10      +2 -0      src/sys/sys/sysctl.h
  1.4       +3 -1      src/sys/vfs/isofs/cd9660/cd9660_node.h
  1.9       +3 -1      src/sys/vfs/nfs/nfsnode.h
  1.3       +4 -2      src/sys/vfs/smbfs/smbfs_node.h
  1.6       +4 -1      src/sys/vfs/ufs/inode.h

More information about the Commits mailing list