cvs commit: src/sys/nfsclient nfs.h nfs_lock.c nfs_lock.h nfs_nfsiod.c nfs_subs.c

Poul-Henning Kamp phk at FreeBSD.org
Mon Dec 6 00:31:33 PST 2004


phk         2004-12-06 08:31:33 UTC

  FreeBSD src repository

  Modified files:
    sys/nfsclient        nfs.h nfs_lock.c nfs_lock.h nfs_nfsiod.c 
                         nfs_subs.c 
  Log:
  For reasons unknown, the nfs locking code used a fifo to send requests to
  userland and a dedicated system call to get replies.
  
  The vnode-bypass of fifos broke this into a panic.
  
  Ditch all the magic and create a device /dev/nfslock instead, and
  use that for both directions apart from the shorter path, this is
  also faster because the device driver runs Giant free using the
  vnode bypass.
  
  Noticed by:     marcel
  
  Revision  Changes    Path
  1.85      +0 -4      src/sys/nfsclient/nfs.h
  1.40      +156 -58   src/sys/nfsclient/nfs_lock.c
  1.6       +3 -3      src/sys/nfsclient/nfs_lock.h
  1.83      +0 -13     src/sys/nfsclient/nfs_nfsiod.c
  1.135     +0 -10     src/sys/nfsclient/nfs_subs.c


More information about the cvs-src mailing list