Re: git: disk/fd - fix panics

看板DFBSD_commit作者時間16年前 (2009/08/17 20:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串3/5 (看更多)
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@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@crater.dragonflybsd.org>: >> >> commit 7ba1363dc2de5d5270486f696e0444e69cd2bf99 >> Author: Matthew Dillon <dillon@apollo.backplane.com> >> Date: =A0 Sun Aug 16 11:18:17 2009 -0700 >> >> =A0 =A0disk/fd - fix panics >> >> =A0 =A0* Call disk_setdiskinfo() on startup. >> >> =A0 =A0* Adjust kernel to not panic if a disk device is opened before >> =A0 =A0 =A0disk_setdiskinfo() has been called. >> >> Summary of changes: >> =A0sys/dev/disk/fd/fd.c | =A0 17 ++++++++++++++++- >> =A0sys/kern/subr_disk.c | =A0 =A07 ++++++- >> =A02 files changed, 22 insertions(+), 2 deletions(-) >> >> http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/7ba1363dc2de5d52= 70486f696e0444e69cd2bf99 >> >> >> -- >> DragonFly BSD source repository >> >
文章代碼(AID): #1AYKt9pG (DFBSD_commit)
文章代碼(AID): #1AYKt9pG (DFBSD_commit)