Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757186AbZC3CZj (ORCPT ); Sun, 29 Mar 2009 22:25:39 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755753AbZC3CZ2 (ORCPT ); Sun, 29 Mar 2009 22:25:28 -0400 Received: from THUNK.ORG ([69.25.196.29]:59633 "EHLO thunker.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753921AbZC3CZ1 (ORCPT ); Sun, 29 Mar 2009 22:25:27 -0400 Date: Sun, 29 Mar 2009 22:25:21 -0400 From: Theodore Tso To: Eric Sandeen Cc: Bartlomiej Zolnierkiewicz , linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ext4: fix blkdev_issue_flush() failure handling Message-ID: <20090330022521.GB13356@mit.edu> Mail-Followup-To: Theodore Tso , Eric Sandeen , Bartlomiej Zolnierkiewicz , linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org References: <200903291928.14451.bzolnier@gmail.com> <49CFB33A.9020406@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <49CFB33A.9020406@redhat.com> User-Agent: Mutt/1.5.18 (2008-05-17) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@mit.edu X-SA-Exim-Scanned: No (on thunker.thunk.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1359 Lines: 36 On Sun, Mar 29, 2009 at 12:43:22PM -0500, Eric Sandeen wrote: > > As long as we keep the call there this is probably good, but after > talking w/ Chris Mason, I think the call is extraneous anyway and should > probably just be removed... > Yes, I agree, but it takes a lot of digging to be completely sure of that it's safe to remove it. Interestingly, it was you who added the patch which added the call to blkdev_issue_flush(): commit d755fb384250d6bd7fd18a0930e71965acc8e72e Author: Eric Sandeen Date: Fri Jul 11 19:27:31 2008 -0400 ext4: call blkdev_issue_flush on fsync To ensure that bits are truly on-disk after an fsync, we should call blkdev_issue_flush if barriers are supported. Inspired by an old thread on barriers, by reiserfs & xfs which do the same, and by a patch SuSE ships with their kernel Signed-off-by: Eric Sandeen Signed-off-by: Mingming Cao Signed-off-by: "Theodore Ts'o" When we remove it we should add a comment noting why it's not necessary. - Ted -- 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/