git: disk/fd - fix panics
Alex
ahornung at gmail.com
Mon Aug 17 05:27:09 PDT 2009
Matt,
as you are calling setdiskinfo from inside the attach routine, when
device_busy is called, the device isn't attached yet.
While the probing is asynchronous, maybe it still occurs too early,
before finalizing the attach?
Sincerely,
Alex Hornung
2009/8/17 Alex <ahornung at gmail.com>:
> This (probably) breaks boot up on my VMWare DragonFly. I get the panic:
> "panic: device_busy: called for unattached device"
>
> Backtrace is,
> panic
> device_busy (4 times)
> fdstrategy
> dev_dstrategy
> diskstrategy
> dev_dstrategy
> diskstrategy
> dev_dstrategy
> mbrinit
> disk_probe
>
>
> What do you suggest?
>
> Sincerely,
> Alex Hornung
>
> 2009/8/17 Matthew Dillon <dillon at crater.dragonflybsd.org>:
>>
>> commit 7ba1363dc2de5d5270486f696e0444e69cd2bf99
>> Author: Matthew Dillon <dillon at apollo.backplane.com>
>> Date: Sun Aug 16 11:18:17 2009 -0700
>>
>> disk/fd - fix panics
>>
>> * Call disk_setdiskinfo() on startup.
>>
>> * Adjust kernel to not panic if a disk device is opened before
>> disk_setdiskinfo() has been called.
>>
>> Summary of changes:
>> sys/dev/disk/fd/fd.c | 17 ++++++++++++++++-
>> sys/kern/subr_disk.c | 7 ++++++-
>> 2 files changed, 22 insertions(+), 2 deletions(-)
>>
>> http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/7ba1363dc2de5d5270486f696e0444e69cd2bf99
>>
>>
>> --
>> DragonFly BSD source repository
>>
>
More information about the Commits
mailing list