Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Feb 2008 09:14:27 -0700 (MST)
From:      "M. Warner Losh" <imp@bsdimp.com>
To:        torfinn.ingolfsen@broadpark.no
Cc:        freebsd-usb@FreeBSD.org
Subject:   Re: kernel panic when unmount removed usbdrive
Message-ID:  <20080228.091427.1100278317.imp@bsdimp.com>
In-Reply-To: <20080228170826.1fa1cadd.torfinn.ingolfsen@broadpark.no>
References:  <c0f49ea0802280727o5b27038cx426cf77ddfbfa9ec@mail.gmail.com> <20080228170826.1fa1cadd.torfinn.ingolfsen@broadpark.no>

next in thread | previous in thread | raw e-mail | index | archive | help
In message: <20080228170826.1fa1cadd.torfinn.ingolfsen@broadpark.no>
            Torfinn Ingolfsen <torfinn.ingolfsen@broadpark.no> writes:
: > anybody knows any work-around ?
: 
: Yes - the work around is this: don't do that!
: Do _not_ remove any mass storage device before unmounting it.

run current and you have better results.

The problem is that error propagation inside of the buffer cache code
and file system code doesn't handle ENXIO very well.  It takes time to
work through it.

One could, in theory, use QEMU to make it easier to test.  Alas, I've
not had time to work through the setup.

Warner





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080228.091427.1100278317.imp>