Panic when removing a SCSI device entry

Kostik Belousov kostikbel at gmail.com
Sun May 8 20:45:18 UTC 2011


On Sun, May 08, 2011 at 10:36:34PM +0200, Joerg Wunsch wrote:
> As Kostik Belousov wrote:
> 
> > > I could perhaps setup a serial console, so to get at least DDB
> > > functioning if you'd like to see more details.  ...
> 
> > Serial console is fine, I do want to see a backtrace.
> > There is also "show cdev" command in ddb, that might provide some
> > useful information.
> 
> OK, I'm setting up a DDB kernel right now, and attached an old laptop
> as the console terminal.  I also applied your suggested patch.
Great.

> 
> > INVARIANTS may be also useful, since the kernel might catch the
> > corruption earlier.
> 
> As INVARIANTS has a performance impact, I'd like to avoid that by now.
> Let's see first whether an analysis is possible without that.  If not,
> would it suffice to just compile kern_conf.c with INVARIANTS?

No, it is not enough to compile only kern_conf.c with INVARIANTS.
Performance impact is not that huge, and definitely pays it cost
for such problems.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-scsi/attachments/20110508/cb4a47f1/attachment.pgp


More information about the freebsd-scsi mailing list