Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Feb 2011 09:03:58 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/vm vm_kern.c
Message-ID:  <201102150904.p1F94BTI007150@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
kib         2011-02-15 09:03:58 UTC

  FreeBSD src repository

  Modified files:
    sys/vm               vm_kern.c 
  Log:
  SVN rev 218701 on 2011-02-15 09:03:58Z by kib
  
  Since r218070 reenabled the call to vm_map_simplify_entry() from
  vm_map_insert(), the kmem_back() assumption about newly inserted
  entry might be broken due to interference of two factors. In the low
  memory condition, when vm_page_alloc() returns NULL, supplied map is
  unlocked. If another thread performs kmem_malloc() meantime, and its
  map entry is placed right next to our thread map entry in the map,
  both entries wire count is still 0 and entries are coalesced due to
  vm_map_simplify_entry().
  
  Mark new entry with MAP_ENTRY_IN_TRANSITION to prevent coalesce.
  Fix some style issues, tighten the assertions to account for
  MAP_ENTRY_IN_TRANSITION state.
  
  Reported and tested by: pho
  Reviewed by:    alc
  
  Revision  Changes    Path
  1.147     +23 -9     src/sys/vm/vm_kern.c



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