cvs commit: src/sys/kern subr_mbuf.c

Bosko Milekic bmilekic at FreeBSD.org
Sat May 10 11:08:25 PDT 2003


bmilekic    2003/05/10 11:08:23 PDT

  FreeBSD src repository

  Modified files:
    sys/kern             subr_mbuf.c 
  Log:
  Make m_freem() just use m_free() instead of duplicating the code.  The
  reason for the duplication was that m_freem() was meant to eventually
  be optimized to hold the lock of the cache being freed to as long as
  possible across frees but the difficulty of implementing said
  optimization right now is too high, given that in some cases (see MAC
  and non-cluster external buffers), we need to call into other subsytems,
  something not permissible when the cache lock is held.
  
  This change minimizes code duplication while keeping at least the
  atomic mbuf+cluster free optimization.
  
  Suggested by: luigi
  
  Revision  Changes    Path
  1.48      +2 -32     src/sys/kern/subr_mbuf.c


More information about the cvs-src mailing list