git: kernel - Fix excessive mbuf use in nfs_realign()

Matthew Dillon dillon at crater.dragonflybsd.org
Wed Aug 18 11:56:27 PDT 2010


commit 3bf6fec386b09ee8846e7093b18975148d9da2cc
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Wed Aug 18 11:50:56 2010 -0700

    kernel - Fix excessive mbuf use in nfs_realign()
    
    * nfs_realign() was calling m_copyback() which itself uses the deprecated
      m_getclr(), and m_getclr() only allocates non-cluster mbufs.
    
      This caused nfs_realign() to use an excessive number of mbufs and can
      exhaust the mbuf pool on systems with small amounts of memory.
    
    Reported-by: Antonio Huete Jimenez <tuxillo at quantumachine.net>

Summary of changes:
 sys/kern/uipc_mbuf.c     |   74 ++++++++++++++++++++++++++++++++++++++++++++++
 sys/sys/mbuf.h           |    1 +
 sys/vfs/nfs/nfs_socket.c |   21 ++++---------
 3 files changed, 82 insertions(+), 14 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/3bf6fec386b09ee8846e7093b18975148d9da2cc


-- 
DragonFly BSD source repository





More information about the Commits mailing list