cvs commit: src/sys/compat/linprocfs linprocfs.c

Konstantin Belousov kib at
Tue Aug 8 12:29:27 UTC 2006

kib         2006-08-08 12:29:27 UTC

  FreeBSD src repository

  Modified files:
    sys/compat/linprocfs linprocfs.c 
  Lock the vnode around the call to VOP_GETATTR. Move the locked code
  and vn_fullpath (that call malloc(..., M_WAITOK)) from under the
  vm object lock, since sleep is not allowed while holding the mutex.
  Being there, wrap VOP_GETATTR call with conditional Giant aquire.
  Currently this is (almost) noop because pseudofs is Giant-locked.
  Tested by:      kris
  Approved by:    pjd (mentor)
  MFC after:      2 weeks
  Revision  Changes    Path
  1.97      +16 -5     src/sys/compat/linprocfs/linprocfs.c

More information about the cvs-src mailing list