git: kernel - Fix lwbuf leak for i386

看板DFBSD_commit作者時間16年前 (2010/03/31 15:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/2 (看更多)
commit 8d79eb09eb976887c3548dee6e130560cf72c854 Author: Matthew Dillon <dillon@apollo.backplane.com> Date: Tue Mar 30 23:45:52 2010 -0700 kernel - Fix lwbuf leak for i386 * lwbufs were not being freed back to the originating cpu, creating a situation where an infinite number of lwbufs could be allocated. * Refactor the lwbuf code for i386. Track the cpu in the lwbuf, remove lwbuf_free_kvp, track the number of lwbufs on the free list for each cpu. Free a lwbuf back to the cpu it was originally created on. Destroy lwbufs and related kmem if the number of free lwbufs on a cpu exceeds 256. * This is a temporary fix until the i386 code can be adjusted to use the objcache again. Summary of changes: sys/cpu/i386/include/lwbuf.h | 13 ++-- sys/cpu/i386/misc/lwbuf.c | 110 ++++++++++++++------------------ sys/platform/pc32/include/globaldata.h | 3 +- 3 files changed, 56 insertions(+), 70 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8d79eb09eb976887c3548dee6e130560cf72c854 -- DragonFly BSD source repository
文章代碼(AID): #1BilCtvx (DFBSD_commit)
文章代碼(AID): #1BilCtvx (DFBSD_commit)