git: kernel - Fix sio lockup

Matthew Dillon dillon at crater.dragonflybsd.org
Tue Sep 18 13:06:26 PDT 2018


commit 11f30079f66756529e9e3cdc3e827d67bbda13ed
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Tue Sep 18 13:03:38 2018 -0700

    kernel - Fix sio lockup
    
    * Fix crit-v-com_lock order.  Critical sections must be entered before
      com_lock, and exited after com_unlock.  This fixes an issue where
      crit_exit() was executing complex code with com_lock still held,
      potentially deadlocking against sio when processing pending interrupts.

Summary of changes:
 sys/dev/serial/sio/sio.c | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/11f30079f66756529e9e3cdc3e827d67bbda13ed


-- 
DragonFly BSD source repository



More information about the Commits mailing list