Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Aug 2003 17:26:51 -0700 (PDT)
From:      Ian Dowse <iedowse@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern vfs_syscalls.c
Message-ID:  <200308050026.h750QpZZ071355@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
iedowse     2003/08/04 17:26:51 PDT

  FreeBSD src repository

  Modified files:
    sys/kern             vfs_syscalls.c 
  Log:
  In the mknod(), mkfifo(), link(), symlink() and undelete() syscalls,
  use vrele() instead of vput() on the parent directory vnode returned
  by namei() in the case where it is equal to the target vnode. This
  handles namei()'s somewhat strange (but documented) behaviour of
  not locking either vnode when the two vnodes are equal and LOCKPARENT
  but not LOCKLEAF is specified.
  
  Note that since a vnode double-unlock is not currently fatal, these
  coding errors were effectively harmless.
  
  Spotted by:     Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>
  Reviewed by:    mckusick
  
  Revision  Changes    Path
  1.329     +23 -5     src/sys/kern/vfs_syscalls.c



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