Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S263277AbVCEAA1 (ORCPT ); Fri, 4 Mar 2005 19:00:27 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S263315AbVCDXz1 (ORCPT ); Fri, 4 Mar 2005 18:55:27 -0500 Received: from gprs189-60.eurotel.cz ([160.218.189.60]:28101 "EHLO amd.ucw.cz") by vger.kernel.org with ESMTP id S263331AbVCDW5r (ORCPT ); Fri, 4 Mar 2005 17:57:47 -0500 Date: Fri, 4 Mar 2005 23:57:10 +0100 From: Pavel Machek To: Benjamin Herrenschmidt Cc: Jesse Barnes , linux-pci@atrey.karlin.mff.cuni.cz, Matthew Wilcox , Linus Torvalds , Jeff Garzik , Hidetoshi Seto , Linux Kernel list , linux-ia64@vger.kernel.org, Linas Vepstas , "Luck, Tony" Subject: Re: [PATCH/RFC] I/O-check interface for driver's error handling Message-ID: <20050304225710.GB2647@elf.ucw.cz> References: <422428EC.3090905@jp.fujitsu.com> <20050301165904.GN28741@parcelfarce.linux.theplanet.co.uk> <200503010910.29460.jbarnes@engr.sgi.com> <20050304135429.GC3485@openzaurus.ucw.cz> <1109975846.5680.305.camel@gaston> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1109975846.5680.305.camel@gaston> X-Warning: Reading this can be dangerous to your mental health. User-Agent: Mutt/1.5.6+20040907i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 946 Lines: 25 Hi! > > 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? > > No, there is no nasty locking, when the callback happens, pretty much > all IOs have stopped anyway due to errors, and we aren't on a critical > code path. What prevents driver from being run on another CPU, maybe just doing mdelay() between hardware accesses? Pavel -- People were complaining that M$ turns users into beta-testers... ...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl! - 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/