Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Jul 2004 16:07:44 +0000 (UTC)
From:      Bosko Milekic <bmilekic@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/vm uma_core.c
Message-ID:  <200407041607.i64G7i5I049306@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
bmilekic    2004-07-04 16:07:44 UTC

  FreeBSD src repository

  Modified files:
    sys/vm               uma_core.c 
  Log:
  Introduce debug.nosleepwithlocks sysctl, 0 by default.  If set to 1
  and WITNESS is not built, then force all M_WAITOK allocations to
  M_NOWAIT behavior (transparently).  This is to be used temporarily
  if wierd deadlocks are reported because we still have code paths
  that perform M_WAITOK allocations with lock(s) held, which can
  lead to deadlock.  If WITNESS is compiled, then the sysctl is ignored
  and we ask witness to tell us wether we have locks held, converting
  to M_NOWAIT behavior only if it tells us that we do.
  
  Note this removes the previous mbuf.h inclusion as well (only needed
  by last revision), and cleans up unneeded [artificial] comparisons
  to just the mbuf zones.  The problem described above has nothing to
  do with previous mbuf wait behavior; it is a general problem.
  
  Revision  Changes    Path
  1.100     +9 -11     src/sys/vm/uma_core.c



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