kernel - Fix excessive mbuf use in nfs_realign()
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 18 Aug 2010 18:50:56 +0000 (11:50 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 18 Aug 2010 18:50:56 +0000 (11:50 -0700)
commit3bf6fec386b09ee8846e7093b18975148d9da2cc
tree91bf99c642d9a5595c2ecf9f6aa899799e4f84b1
parent74e7e48adf1d9b7e008f3c573a16ce26778cbccd
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@quantumachine.net>
sys/kern/uipc_mbuf.c
sys/sys/mbuf.h
sys/vfs/nfs/nfs_socket.c