syscons - Avoid potential blocking issue.
authorAntonio Huete Jimenez <tuxillo@quantumachine.net>
Tue, 18 Oct 2011 10:09:36 +0000 (12:09 +0200)
committerAntonio Huete Jimenez <tuxillo@quantumachine.net>
Tue, 18 Oct 2011 10:09:36 +0000 (12:09 +0200)
commitf6ce8b1945431efc69d4d9b9b02f73af98edbe53
treee1419fbd6325d8a0c4f36d291934fbda363bdecb
parent9d8625ebaab570eee3ac8eb7269d6001bcda19cf
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
sys/dev/misc/syscons/syscons.c