git: kernel - Fix mbuf cluster statistics, fix type change bug

看板DFBSD_commit作者時間14年前 (2011/11/10 10:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit 461213b7b36154b1d0b6af709fd49954233622d6 Author: Matthew Dillon <dillon@apollo.backplane.com> Date: Mon Oct 31 14:18:52 2011 -0700 kernel - Fix mbuf cluster statistics, fix type change bug * The mbuf cluster statistics were not properly handling a sharecount race case, causing the cluster count to continuously increase under heavy loads. * atomic_set_short() was being improperly used to set m->m_type, causing the type field to collect a logical OR of changeouts. Just set it normally. * We don't need to use atomic ops for per-cpu stats updates. Reported-by: Peter Avalos <peter@theshell.com>, "Samuel J. Greear" <sjg@evilcode.net> Summary of changes: sys/kern/uipc_mbuf.c | 63 +++++++++++++++++++++---------------------------- 1 files changed, 27 insertions(+), 36 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/461213b7b36154b1d0b6af709fd49954233622d6 -- DragonFly BSD source repository
文章代碼(AID): #1EkpVMDd (DFBSD_commit)