From owner-freebsd-hackers Tue Mar 13 8:52:46 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from freebsd.dk (freebsd.dk [212.242.42.178]) by hub.freebsd.org (Postfix) with ESMTP id 8987C37B71A for ; Tue, 13 Mar 2001 08:52:43 -0800 (PST) (envelope-from sos@freebsd.dk) Received: (from sos@localhost) by freebsd.dk (8.9.3/8.9.1) id RAA08577; Tue, 13 Mar 2001 17:50:36 +0100 (CET) (envelope-from sos) From: Soren Schmidt Message-Id: <200103131650.RAA08577@freebsd.dk> Subject: Re: Patch to fix panic when detaching a mounted md device In-Reply-To: <200103131641.f2DGfY903956@harmony.village.org> from Warner Losh at "Mar 13, 2001 09:41:34 am" To: imp@harmony.village.org (Warner Losh) Date: Tue, 13 Mar 2001 17:50:36 +0100 (CET) Cc: phk@critter.freebsd.dk (Poul-Henning Kamp), dima@unixfreak.org (Dima Dorfman), hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG It seems Warner Losh wrote: > In message <8773.984501263@critter> Poul-Henning Kamp writes: > : >We should then fix the rest of the system to deal with disks that > : >disappear without notice. > : > : That was the point yes :-) > > Cool. When this happens, the forgetful ata flash ejectors of the > world will be happy :-) The next commit to the ATA driver will take care off this, either by the user doing 'atacontrol detach dev' or by the timeout code discovering that a divice went missing and proberly fail all the outstanding bio requests.. This all needed the patch to subr_disk.c that I made earlier today, but now we can actually do it, however some of the cleanup action should be done by the higher levels and not by the device driver... -Søren To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message