Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 May 2003 11:08:23 -0700 (PDT)
From:      Bosko Milekic <bmilekic@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern subr_mbuf.c
Message-ID:  <200305101808.h4AI8Nfe089821@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



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