DragonFly BSD
DragonFly commits List (threaded) for 2012-12
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: kernel - Reorder dsched teardown to fix race


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 3 Dec 2012 10:22:21 -0800 (PST)

commit 699b57b6d6be9350c2c8d525b99cff1386b2cb59
Author: Matthew Dillon <dillon@apollo.backplane.com>
Date:   Mon Dec 3 10:20:29 2012 -0800

    kernel - Reorder dsched teardown to fix race
    
    * Remove the struct disk from its list prior to tearing down the device
      instead of after in order to fix a race related to disk enumerations.
    
    * Wait for active references on the disk structure to go away before
      tearing down the device.

Summary of changes:
 sys/kern/subr_disk.c |   18 ++++++++++++++----
 1 files changed, 14 insertions(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/699b57b6d6be9350c2c8d525b99cff1386b2cb59


-- 
DragonFly BSD source repository



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]