Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Aug 2009 10:20:52 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/kern vfs_vnops.c
Message-ID:  <200908311021.n7VALD3R062827@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
kib         2009-08-31 10:20:52 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             vfs_vnops.c 
  Log:
  SVN rev 196692 on 2009-08-31 10:20:52Z by kib
  
  Make the mnt_writeopcount and mnt_secondary_writes counters,
  used by the suspension code, not greater then mnt_ref reference
  counter value. Increment mnt_ref together with write counter
  in vn_start_write()/ vn_start_secondary_write(), releasing in
  vn_finished_write/vn_finished_secondary_write().
  
  Since r186197, unmount code requires that no writers occured after all
  references are expired. We still could get write counter incremented
  for freed or reused struct mount, but it seems to be innocent, since
  corresponding vnode should be referenced and reclaimed then.
  
  Reported by:    pho (last half a year), erwin
  Reviewed by:    attilio
  Tested by:      pho, erwin
  MFC after:      1 week
  
  Revision  Changes    Path
  1.287     +4 -2      src/sys/kern/vfs_vnops.c



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