cvs commit: src/sys/vm uma_core.c

Brian Feldman green at FreeBSD.org
Sat Jul 3 11:11:41 PDT 2004


green       2004-07-03 18:11:41 UTC

  FreeBSD src repository

  Modified files:
    sys/vm               uma_core.c 
  Log:
  Limit mbuma damage.  Suddenly ALL allocations with M_WAITOK are subject
  to failing -- that is, allocations via malloc(M_WAITOK) that are required
  to never fail -- if WITNESS is not defined.  While everyone should be
  running WITNESS, in any case, zone "Mbuf" allocations are really the only
  ones that should be screwed with by this hack.
  
  This hack is crashing people, and would continue to do so with or without
  WITNESS.  Things shouldn't be allocating with M_WAITOK with locks held,
  but it's not okay just to always remove M_WAITOK when !WITNESS.
  
  Reported by:    Bernd Walter <ticso at cicely5.cicely.de>
  
  Revision  Changes    Path
  1.98      +8 -4      src/sys/vm/uma_core.c


More information about the cvs-src mailing list