Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262099AbVCAWdR (ORCPT ); Tue, 1 Mar 2005 17:33:17 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262106AbVCAWcp (ORCPT ); Tue, 1 Mar 2005 17:32:45 -0500 Received: from gate.crashing.org ([63.228.1.57]:65474 "EHLO gate.crashing.org") by vger.kernel.org with ESMTP id S262104AbVCAWax (ORCPT ); Tue, 1 Mar 2005 17:30:53 -0500 Subject: Re: [PATCH/RFC] I/O-check interface for driver's error handling From: Benjamin Herrenschmidt To: Linus Torvalds Cc: Andi Kleen , Hidetoshi Seto , Linas Vepstas , "Luck, Tony" , Linux Kernel list In-Reply-To: References: <422428EC.3090905@jp.fujitsu.com> Content-Type: text/plain Date: Wed, 02 Mar 2005 09:26:30 +1100 Message-Id: <1109715991.5680.49.camel@gaston> Mime-Version: 1.0 X-Mailer: Evolution 2.0.3 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1071 Lines: 24 > In fact, I'd argue that even a driver that _uses_ the interface should not > necessarily shut itself down on error. Obviously, it should always log the > error, but outside of that it might be good if the operator can decide and > set a flag whether it should try to re-try (which may not always be > possible, of course), shut down, or just continue. In lots of case, you don't have an operator smart enough to make this decision nowadays, and even if you had, for things like your SCSI adapter, you just can't expect userland to be operational. The error recovery policy should be buildable in the driver. If it's not, however, then I agree that userland intervention is probably a good idea. Note that on pSeries, we have no choice. On error, the slot is isolated. So we can't let the driver continue anyway. Ben. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/