Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 May 1998 23:10:13 -0700 (PDT)
From:      Peter Wemm <peter@FreeBSD.ORG>
To:        cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-sys@FreeBSD.ORG
Subject:   cvs commit: src/sys/nfs nfs_node.c
Message-ID:  <199805130610.XAA00545@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
peter       1998/05/12 23:10:13 PDT

  Modified files:
    sys/nfs              nfs_node.c 
  Log:
  Hold a reference to the vnode during the sillyrename cleanup.  If we block
  in nfs_vinvalbuf() or the nfs_removeit(), we can have the nfsnode reallocated
  from underneath us (eg: replaced by a ufs 'struct inode') which can cause
  disk corruption ('freeing free block' when di_db[5] gets trashed).
  This is not a cheap fix, but it'll do until the nfsnodes get reference
  counting and/or locking.
  
  Apparently NetBSD have a similar fix (apparently from BSDI).
  
  I wish all PR's had this much useful detail. :-)
  
  PR: 6611
  Submitted by: Stephen Clawson <sclawson@marker.cs.utah.edu>
  
  Revision  Changes    Path
  1.25      +9 -1      src/sys/nfs/nfs_node.c

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199805130610.XAA00545>