Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757236AbYLED10 (ORCPT ); Thu, 4 Dec 2008 22:27:26 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753877AbYLED07 (ORCPT ); Thu, 4 Dec 2008 22:26:59 -0500 Received: from sandeen.net ([209.173.210.139]:13373 "EHLO sandeen.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756502AbYLED07 (ORCPT ); Thu, 4 Dec 2008 22:26:59 -0500 Message-ID: <49389F81.1090306@sandeen.net> Date: Thu, 04 Dec 2008 21:26:57 -0600 From: Eric Sandeen User-Agent: Thunderbird 2.0.0.18 (Macintosh/20081105) MIME-Version: 1.0 To: Mikulas Patocka CC: Andi Kleen , Milan Broz , Andi Kleen , linux-kernel@vger.kernel.org, Alasdair G Kergon , xfs@oss.sgi.com Subject: Re: Device loses barrier support References: <20081204100050.GN6703@one.firstfloor.org> <20081204142015.GQ6703@one.firstfloor.org> <20081204145810.GR6703@one.firstfloor.org> <20081204174838.GS6703@one.firstfloor.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 705 Lines: 18 Mikulas Patocka wrote: > Another thing: > > I'm wondering, where in fsync() does Linux wait for hardware disk cache to > be flushed? Isn't there a bug that fsync() will return before the cache is > flushed? I couldn't really find it. The last thing do_fsync calls is > filemap_fdatawait and it doesn't do cache flush (blkdev_issue_flush). ext4, reiserfs, and xfs all call blkdev_issue_flush() in their ->fsync file operations (or down that path). -Eric -- 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/