From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2992724AbXDRPEl (ORCPT ); Wed, 18 Apr 2007 11:04:41 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S2992716AbXDRPEl (ORCPT ); Wed, 18 Apr 2007 11:04:41 -0400 Received: from outpipe-village-512-1.bc.nu ([81.2.110.250]:55612 "EHLO the-village.bc.nu" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2992723AbXDRPEk (ORCPT ); Wed, 18 Apr 2007 11:04:40 -0400 Date: Wed, 18 Apr 2007 16:06:27 +0100 From: Alan Cox To: Mark Lord Cc: Tejun Heo , 7eggert@gmx.de, Chuck Ebbert , emisca , Jan Engelhardt , Bartlomiej Zolnierkiewicz , linux-kernel , linux-ide@vger.kernel.org, Adrian Bunk , Andrew Morton Subject: Re: Loud "pop" coming from hard drive on reboot Message-ID: <20070418160627.7ab77c30@the-village.bc.nu> In-Reply-To: <46262C0E.9000103@rtr.ca> References: <88SeR-5Sf-15@gated-at.bofh.it> <88Sov-662-3@gated-at.bofh.it> <88SHV-6uL-29@gated-at.bofh.it> <8agVk-3wc-81@gated-at.bofh.it> <8b3IR-4mE-25@gated-at.bofh.it> <8b3SA-4z3-5@gated-at.bofh.it> <8b42g-51N-15@gated-at.bofh.it> <8bbdm-7iS-27@gated-at.bofh.it> <46260981.1040109@gmail.com> <20070418132904.3322ba5f@the-village.bc.nu> <46261337.3010406@gmail.com> <20070418140346.636879a1@the-village.bc.nu> <46262C0E.9000103@rtr.ca> X-Mailer: Claws Mail 2.8.1 (GTK+ 2.10.8; i386-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org > + if (dev->needs_flush && ata_try_flush_cache(dev)) { > return ata_scsi_flush_xlat; > + dev->needs_flush = 0; Works better if you swap the dev-> and return lines Alan