cvs commit: src/sys/kern kern_exit.c vfs_subr.c vfs_vnops.c src/sys/vfs/specfs spec_vnops.c

Matthew Dillon dillon at crater.dragonflybsd.org
Mon Jun 14 17:31:12 PDT 2004


dillon      2004/06/14 17:30:55 PDT

DragonFly src repository

  Modified files:
    sys/kern             kern_exit.c vfs_subr.c vfs_vnops.c 
    sys/vfs/specfs       spec_vnops.c 
  Log:
  Fix a race with the clearing of p->p_session->s_ttyvp.  NULL the pointer
  out before calling vrele() rather then after.
  
  Fix a bug with v_opencount accounting on revoke().  The underlying device
  was being closed properly but v_opencount was being decremented which causes
  it to go negative when close() is called on the descriptor later on.  To
  fix the bug we zero out v_opencount() when the underlying vnode's device
  is disassociated and spec_close() now only decrements it when the device is
  associated.
  
  Reported-by: GeekGod
  Testing-by: GeekGod, Hiten, David Rhodus.
  
  Revision  Changes    Path
  1.36      +18 -8     src/sys/kern/kern_exit.c
  1.33      +9 -3      src/sys/kern/vfs_subr.c
  1.22      +5 -4      src/sys/kern/vfs_vnops.c
  1.18      +22 -16    src/sys/vfs/specfs/spec_vnops.c


http://www.dragonflybsd.org/cvsweb/src/sys/kern/kern_exit.c.diff?r1=1.35&r2=1.36&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/kern/vfs_subr.c.diff?r1=1.32&r2=1.33&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/kern/vfs_vnops.c.diff?r1=1.21&r2=1.22&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/vfs/specfs/spec_vnops.c.diff?r1=1.17&r2=1.18&f=u





More information about the Commits mailing list