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

看板DFBSD_commit作者時間15年前 (2010/08/19 03:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
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
文章代碼(AID): #1CR2tpde (DFBSD_commit)