Re: git: disk/fd - fix panics

看板DFBSD_commit作者時間16年前 (2009/08/18 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串5/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 Hm.. I was calling it at the end of the attach code, but I think I made a fatal assumption. I assumed that the probe code would open the base device. But it doesn't, does it! I think it just uses the raw device passed to disk_create()! Most of the floppy driver's real probe code is in its open() function. If the function does not get called then it will blow up. Hmm. We don't want to do the open synchronously in the probe code. What if we added a DSO_ option to tell the devfs/disk subsystem that it must dev_dopen() the raw device for the probe operation? -Matt
文章代碼(AID): #1AYPhnn9 (DFBSD_commit)
文章代碼(AID): #1AYPhnn9 (DFBSD_commit)