From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Cox Subject: Re: IDE problems in 2.6.12-rc1-bk1 onwards (was Re: 2.6.12-rc3-mm1) Date: Mon, 02 May 2005 18:47:15 +0100 Message-ID: <1115056032.10369.33.camel@localhost.localdomain> References: <03be01c54e77$83d86980$0f01a8c0@max> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <03be01c54e77$83d86980$0f01a8c0@max> Sender: linux-kernel-owner@vger.kernel.org To: Richard Purdie Cc: Linux Kernel Mailing List , bzolnier@gmail.com, Dominik Brodowski , Andrew Morton , linux-ide@vger.kernel.org List-Id: linux-ide@vger.kernel.org On Sul, 2005-05-01 at 18:59, Richard Purdie wrote: > Solution: ide_unregister() should return failure and pass responsibility for > handling it to ide-cs or it should always succeed. I'd favour the latter as > the ide layer should really handle its own cleanup. Maybe a parameter should > be added to ide_unregister() to select the behaviour if the drive is busy/in > use? If the hardware is gone, we want it to happen regardless for example... This is what the -ac tree has done for some time. It tried to unregister and if that fails will wait and retry. It also sets the I/O operations to a set of null operations to ensure that there are no further unneccessary writes/reads from the empty bus slot. Alan