Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262910AbVCDOki (ORCPT ); Fri, 4 Mar 2005 09:40:38 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261410AbVCDOhZ (ORCPT ); Fri, 4 Mar 2005 09:37:25 -0500 Received: from atrey.karlin.mff.cuni.cz ([195.113.31.123]:9883 "EHLO atrey.karlin.mff.cuni.cz") by vger.kernel.org with ESMTP id S262405AbVCDOeB (ORCPT ); Fri, 4 Mar 2005 09:34:01 -0500 Date: Fri, 4 Mar 2005 14:54:29 +0100 From: Pavel Machek To: Jesse Barnes Cc: linux-pci@atrey.karlin.mff.cuni.cz, Matthew Wilcox , Linus Torvalds , Jeff Garzik , Hidetoshi Seto , Linux Kernel list , linux-ia64@vger.kernel.org, Benjamin Herrenschmidt , Linas Vepstas , "Luck, Tony" Subject: Re: [PATCH/RFC] I/O-check interface for driver's error handling Message-ID: <20050304135429.GC3485@openzaurus.ucw.cz> References: <422428EC.3090905@jp.fujitsu.com> <20050301165904.GN28741@parcelfarce.linux.theplanet.co.uk> <200503010910.29460.jbarnes@engr.sgi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200503010910.29460.jbarnes@engr.sgi.com> User-Agent: Mutt/1.3.27i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1035 Lines: 28 Hi! > > If there's no ->error method, at leat call ->remove so one device only > > takes itself down. > > > > Does this make sense? > > This was my thought too last time we had this discussion. A completely > asynchronous call is probably needed in addition to Hidetoshi's proposed API, > since as you point out, the driver may not be running when an error occurs > (e.g. in the case of a DMA error or more general bus problem). The async Hmm, before we go async way (nasty locking, no?) could driver simply ask "did something bad happen while I was sleeping?" at begining of each function? For DMA problems, driver probably has its own, timer-based, "something is wrong" timer, anyway, no? Pavel -- 64 bytes from 195.113.31.123: icmp_seq=28 ttl=51 time=448769.1 ms - 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/