git: syscons - Avoid potential blocking issue.

看板DFBSD_commit作者時間14年前 (2011/10/22 18:03), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit f6ce8b1945431efc69d4d9b9b02f73af98edbe53 Author: Antonio Huete Jimenez <tuxillo@quantumachine.net> Date: Tue Oct 18 12:09:36 2011 +0200 syscons - Avoid potential blocking issue. - kbd_ioctl() uses it's own locking via lockmgr() and the syscons softc is protected using a mutex, so we better avoid both locks at once due possible blocking issues. In fact, in my particular case the panic only occurs in real hardware, while on a VMWare VM I had a lockup. - Only found in 4-CPU SMP setups. - Discovered via DEBUG_LOCKS option. DragonFly-bug: <http://bugs.dragonflybsd.org/issue2148> Reviewed-by: @dillon, @sjg Summary of changes: sys/dev/misc/syscons/syscons.c | 50 +++++++++++++++++++++++++++------------ 1 files changed, 34 insertions(+), 16 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/f6ce8b1945431efc69d4d9b9b02f73af98edbe53 -- DragonFly BSD source repository
文章代碼(AID): #1EefK1Fo (DFBSD_commit)