Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Sep 2009 12:10:41 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/fs/pseudofs pseudofs_vncache.c
Message-ID:  <200909071211.n87CB1u6046661@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
kib         2009-09-07 12:10:41 UTC

  FreeBSD src repository

  Modified files:
    sys/fs/pseudofs      pseudofs_vncache.c 
  Log:
  SVN rev 196921 on 2009-09-07 12:10:41Z by kib
  
  If a race is detected, pfs_vncache_alloc() may reclaim a vnode that had
  never been inserted into the pfs_vncache list. Since pfs_vncache_free()
  does not anticipate this case, it decrements pfs_vncache_entries
  unconditionally; if the vnode was not in the list, pfs_vncache_entries
  will no longer reflect the actual number of list entries. This may cause
  size of the cache to exceed the configured maximum. It may also trigger
  a panic during module unload or system shutdown.
  
  Do not decrement pfs_vncache_entries for the vnode that was not in the
  list.
  
  Submitted by:   tegge
  Reviewed by:    des
  MFC after:      1 week
  
  Revision  Changes    Path
  1.48      +5 -3      src/sys/fs/pseudofs/pseudofs_vncache.c



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