Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Jun 2005 07:03:23 +0000 (UTC)
From:      Pawel Jakub Dawidek <pjd@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:  <200506120703.j5C73N88052136@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
pjd         2005-06-12 07:03:23 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             vfs_syscalls.c 
  Log:
  Do not allocate memory while holding a mutex.
  I introduce a very small race here (some file system can be mounted or
  unmounted between 'count' calculation and file systems list creation),
  but it is harmless.
  
  Found by:       FreeBSD Kernel Stress Test Suite: http://www.holm.cc/stress/
  Reported by:    Peter Holm <peter@holm.cc>
  
  Revision  Changes    Path
  1.390     +4 -2      src/sys/kern/vfs_syscalls.c



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