git: kernel - Fix callout deadlock in u4b

Matthew Dillon dillon at crater.dragonflybsd.org
Tue Nov 25 10:22:17 PST 2014


commit 829b5b4784a0a87b2742bc076e3d1dacafb951e2
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Tue Nov 25 10:20:41 2014 -0800

    kernel - Fix callout deadlock in u4b
    
    * Fix a deadlock which could freeze systems prior to the callout work and
      cause X to deadlock (but not totally freeze a system) after the callout
      work.
    
    * Use the new callout_init_lk() auto-locking feature to handle a particular
      usb callout.  This allows the callout to be canceled if it interferes with
      a frontend callout_reset() call and also fixes the related race.

Summary of changes:
 sys/bus/u4b/usb_util.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/829b5b4784a0a87b2742bc076e3d1dacafb951e2


-- 
DragonFly BSD source repository



More information about the Commits mailing list