git: kernel - Reorder dsched teardown to fix race
Matthew Dillon
dillon at crater.dragonflybsd.org
Mon Dec 3 10:22:21 PST 2012
commit 699b57b6d6be9350c2c8d525b99cff1386b2cb59
Author: Matthew Dillon <dillon at 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
More information about the Commits
mailing list