cvs commit: src/sys/kern kern_descrip.c

Robert Watson rwatson at FreeBSD.org
Fri Aug 6 15:00:56 PDT 2004


rwatson     2004-08-06 22:00:55 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             kern_descrip.c 
  Log:
  Avoid acquiring Giant for some common light-weight or already MPSAFE
  fcntl() operations, including:
  
    F_DUPFD          dup() alias
    F_GETFD          retrieve close-on-exec flag
    F_SETFD          set close-on-exec flag
    F_GETFL          retrieve file descriptor flags
  
  For the remaining fcntl() operations, do acquire Giant, especially
  where we call into fo_ioctl() as a result.  We're not yet ready to
  push Giant into fo_ioctl().  Once we do, this can all become quite a
  bit prettier.
  
  Revision  Changes    Path
  1.240     +31 -2     src/sys/kern/kern_descrip.c


More information about the cvs-src mailing list