cvs commit: src/sys/gnu/fs/xfs/FreeBSD xfs_buf.c xfs_buf.h src/sys/kern kern_shutdown.c vfs_bio.c vfs_subr.c src/sys/nfs4client nfs4_vnops.c src/sys/nfsclient nfs_subs.c nfs_vnops.c src/sys/sys buf.h lockmgr.h src/sys/ufs/ffs ...

Attilio Rao attilio at FreeBSD.org
Sat Jan 19 09:36:24 PST 2008


attilio     2008-01-19 17:36:24 UTC

  FreeBSD src repository

  Modified files:
    sys/gnu/fs/xfs/FreeBSD xfs_buf.c xfs_buf.h 
    sys/kern             kern_shutdown.c vfs_bio.c vfs_subr.c 
    sys/nfs4client       nfs4_vnops.c 
    sys/nfsclient        nfs_subs.c nfs_vnops.c 
    sys/sys              buf.h lockmgr.h 
    sys/ufs/ffs          ffs_vfsops.c 
  Log:
  - Introduce the function lockmgr_recursed() which returns true if the
    lockmgr lkp, when held in exclusive mode, is recursed
  - Introduce the function BUF_RECURSED() which does the same for bufobj
    locks based on the top of lockmgr_recursed()
  - Introduce the function BUF_ISLOCKED() which works like the counterpart
    VOP_ISLOCKED(9), showing the state of lockmgr linked with the bufobj
  
  BUF_RECURSED() and BUF_ISLOCKED() entirely replace the usage of bogus
  BUF_REFCNT() in a more explicative and SMP-compliant way.
  This allows us to axe out BUF_REFCNT() and leaving the function
  lockcount() totally unused in our stock kernel. Further commits will
  axe lockcount() as well as part of lockmgr() cleanup.
  
  KPI results, obviously, broken so further commits will update manpages
  and freebsd version.
  
  Tested by: kris (on UFS and NFS)
  
  Revision  Changes    Path
  1.3       +4 -4      src/sys/gnu/fs/xfs/FreeBSD/xfs_buf.c
  1.3       +1 -2      src/sys/gnu/fs/xfs/FreeBSD/xfs_buf.h
  1.188     +1 -1      src/sys/kern/kern_shutdown.c
  1.535     +14 -16    src/sys/kern/vfs_bio.c
  1.716     +1 -1      src/sys/kern/vfs_subr.c
  1.40      +5 -4      src/sys/nfs4client/nfs4_vnops.c
  1.150     +1 -1      src/sys/nfsclient/nfs_subs.c
  1.280     +5 -4      src/sys/nfsclient/nfs_vnops.c
  1.198     +12 -24    src/sys/sys/buf.h
  1.57      +2 -0      src/sys/sys/lockmgr.h
  1.334     +1 -1      src/sys/ufs/ffs/ffs_vfsops.c


More information about the cvs-all mailing list