[haiku-bugs] [Haiku] #5421: kernel_daemons are called with the lock held

  • From: "axeld" <trac@xxxxxxxxxxxx>
  • Date: Wed, 17 Feb 2010 09:59:10 -0000

#5421: kernel_daemons are called with the lock held
---------------------------+------------------------------------------------
 Reporter:  axeld          |       Owner:  axeld         
     Type:  bug            |      Status:  new           
 Priority:  normal         |   Milestone:  R1            
Component:  System/Kernel  |     Version:  R1/Development
 Keywords:                 |   Blockedby:                
 Platform:  All            |    Blocking:                
---------------------------+------------------------------------------------
 This does cause trouble with the legacy driver implementation, since that
 one calls init_driver() with the driver lock held -- if that registers a
 kernel daemon (like the floppy driver), a deadlock may happen.

 The solution would be to either not lock when calling into the driver, or
 changing the kernel daemon not to lock when calling the functions.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/5421>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: