Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Jul 2004 20:40:24 +0000 (UTC)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern kern_descrip.c kern_event.c sys_socket.c vfs_vnops.c
Message-ID:  <200407222040.i6MKeOFE014220@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
rwatson     2004-07-22 20:40:24 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             kern_descrip.c kern_event.c sys_socket.c 
                         vfs_vnops.c 
  Log:
  Push Giant acquisition down into fo_stat() from most callers.  Acquire
  Giant conditional on debug.mpsafenet in the socket soo_stat() routine,
  unconditionally in vn_statfile() for VFS, and otherwise don't acquire
  Giant.  Accept an unlocked read in kqueue_stat(), and cryptof_stat() is
  a no-op.  Don't acquire Giant in fstat() system call.
  
  Note: in fdescfs, fo_stat() is called while holding Giant due to the VFS
  stack sitting on top, and therefore there will still be Giant recursion
  in this case.
  
  Revision  Changes    Path
  1.238     +0 -6      src/sys/kern/kern_descrip.c
  1.74      +1 -0      src/sys/kern/kern_event.c
  1.63      +5 -1      src/sys/kern/sys_socket.c
  1.205     +2 -0      src/sys/kern/vfs_vnops.c



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