Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935442AbXHHC4R (ORCPT ); Tue, 7 Aug 2007 22:56:17 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1759364AbXHHC4G (ORCPT ); Tue, 7 Aug 2007 22:56:06 -0400 Received: from rv-out-0910.google.com ([209.85.198.190]:10908 "EHLO rv-out-0910.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758601AbXHHC4C (ORCPT ); Tue, 7 Aug 2007 22:56:02 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:x-enigmail-version:content-type:content-transfer-encoding; b=NgNDN5aAIYk/8tSx1CGcRDMYaXgC51SYVj4TQpb1k7VcTr4InYAcGbNU5bekGUw1tIQRBlHcQtQmOLMTyc2k/IGUqk//0hNQMBiMeuzglsQE0N6uNt5qFO1LrDLPtDSM+LFybS4Fvh2Q+DBLB+MdMcHCHPjhkfipnKmF2uk+hQo= Message-ID: <46B9307D.3000105@gmail.com> Date: Wed, 08 Aug 2007 11:54:53 +0900 From: Tejun Heo User-Agent: Thunderbird 2.0.0.6 (X11/20070728) MIME-Version: 1.0 To: Michael Sedkowski CC: trenn@suse.de, Robert Hancock , "Rafael J. Wysocki" , Henrique de Moraes Holschuh , linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org, linux-acpi@vger.kernel.org Subject: Re: Disk spin down issue on shut down/suspend to disk References: <46B7AF53.1040307@shaw.ca> <46B8140E.3000509@gmail.com> <1186497925.8780.78.camel@queen.suse.de> <1186514618.5622.9.camel@nx6310> In-Reply-To: <1186514618.5622.9.camel@nx6310> X-Enigmail-Version: 0.95.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1327 Lines: 29 Michael Sedkowski wrote: > I did some additional checking today... > On kernels prior to 2.6.22 line, the bug exists and manifests itself > exactly the same way. However, when I removed the "-h" flag > from /etc/init.d/halt, the drive spins down only once on "Power down" > message and there is no sign of the bug and the emergency unload count > remains constant. I've verified this on kernels 2.6.21.6; 2.6.20.4; > 2.6.18-4-686-Etch. > The obvious conclusion is that something must have changed it the 2.6.22 > kernels, so that removing the "-h" has no effect. > I dunno if my observations are of any value, but I thought You should > know... Yeah, till 2.6.22, libata didn't spindown disks on suspend or power off which incremented emergency unload count on all normal systems, so only the ACPI S5 routine is spinning down the disk on you system. The problem here is that now that libata is fixed there are two entities trying to spin down the disk and the disk is dumb enough to spin back up when FLUSH CACHE or STANDBYNOW is received while spun down. :-( Thanks. -- tejun - 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/