git: kernel - Rewrite the callout API, major structural changes (2)

Matthew Dillon dillon at crater.dragonflybsd.org
Mon Nov 16 02:11:33 PST 2020


commit 98dd7c40f68023d0feff672c7444e9c6bec0deb2
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Mon Nov 16 02:09:38 2020 -0800

    kernel - Rewrite the callout API, major structural changes (2)
    
    * Fix deadlock during recursive callback, triggered by the USB
      subsystem.
    
      Basically we have to clear the SET bit immediately after setting
      INPROG, and also allow normal processing to occur synchronously
      from the same thread that dispatched the callback (normally INPROG
      prevents normal processing from occuring).
    
    Reported-by: zrj

Summary of changes:
 sys/kern/kern_timeout.c | 35 +++++++++++++++++++++++++++++++----
 1 file changed, 31 insertions(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/98dd7c40f68023d0feff672c7444e9c6bec0deb2


-- 
DragonFly BSD source repository


More information about the Commits mailing list