DragonFly commits List (threaded) for 2010-08
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
git: kernel - Fix excessive mbuf use in nfs_realign()
commit 3bf6fec386b09ee8846e7093b18975148d9da2cc
Author: Matthew Dillon <dillon@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@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
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]