Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Feb 2009 19:55:03 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/vm vm_map.c
Message-ID:  <200902081955.n18JtHSh014998@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
kib         2009-02-08 19:55:03 UTC

  FreeBSD src repository

  Modified files:
    sys/vm               vm_map.c 
  Log:
  SVN rev 188323 on 2009-02-08 19:55:03Z by kib
  
  Lock the new map in vmspace_fork(). The newly allocated map should not
  be accessible outside vmspace_fork() yet, but locking it would satisfy
  the protocol of the vm_map_entry_link() and other functions called
  from vmspace_fork().
  
  Use trylock that is supposedly cannot fail, to silence WITNESS warning
  of the nested acquisition of the sx lock with the same name.
  
  Suggested and reviewed by:      tegge
  
  Revision  Changes    Path
  1.404     +5 -0      src/sys/vm/vm_map.c



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