git: kernel - Bring devfs_assume_knotes() uptodate and fix panic

看板DFBSD_commit作者時間15年前 (2010/09/26 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit 377c34618491e4564dfe205f5ecc1ea9d6bd84bc Author: Matthew Dillon <dillon@apollo.backplane.com> Date: Sat Sep 25 10:43:55 2010 -0700 kernel - Bring devfs_assume_knotes() uptodate and fix panic * devfs_assume_knotes() was blindly transfering the knotes without properly acquiring their soft-lock. The problem was easily reproducable by running 'moused -p /dev/ums0' and then unplugging the mouse. * Move the core of the routine into a new procedure in kern_event.c called knote_assume_knotes() which properly acquires and releases the underlying knotes. Summary of changes: sys/kern/kern_event.c | 20 ++++++++++++++++++++ sys/vfs/devfs/devfs_core.c | 18 +++++------------- 2 files changed, 25 insertions(+), 13 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/377c34618491e4564dfe205f5ecc1ea9d6bd84bc -- DragonFly BSD source repository
文章代碼(AID): #1CdZZpdj (DFBSD_commit)