Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750866AbXBVCne (ORCPT ); Wed, 21 Feb 2007 21:43:34 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750882AbXBVCne (ORCPT ); Wed, 21 Feb 2007 21:43:34 -0500 Received: from shawidc-mo1.cg.shawcable.net ([24.71.223.10]:40980 "EHLO pd3mo2so.prod.shaw.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750866AbXBVCnd (ORCPT ); Wed, 21 Feb 2007 21:43:33 -0500 Date: Wed, 21 Feb 2007 20:43:20 -0600 From: Robert Hancock Subject: Re: Weird hard disk noise on shutdown (bug #7674) In-reply-to: To: Alan , linux-kernel Cc: Francesco Pretto , Tejun Heo Message-id: <45DD0348.5040005@shaw.ca> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit References: User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 902 Lines: 24 Alan wrote: > Stick some printk calls in drivers/ata/libata-eh.c in ata_eh_suspend, or > turn on all the ATA debug and shutdown, the code should issue a cache > flush followed by a standbynow1 command for each disk. > > Alan I believe it runs on suspend, but we don't run that code on normal shutdown, do we? Tejun Heo had a patch for sd that could (optionally) trigger a START STOP UNIT command to spin the disk down after synchronizing the cache before shutdown, but I haven't heard anything of it lately.. -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from hancockr@nospamshaw.ca Home Page: http://www.roberthancock.com/ - 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/