From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from imap.thunk.org ([74.207.234.97]:47518 "EHLO imap.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752105AbdEDPAU (ORCPT ); Thu, 4 May 2017 11:00:20 -0400 Date: Thu, 4 May 2017 11:00:17 -0400 From: Theodore Ts'o To: Jan Kara Cc: linux-fsdevel@vger.kernel.org, Christoph Hellwig , linux-ext4@vger.kernel.org Subject: Re: [PATCH 1/7] ext4: Mark superblock writes synchronous for nobarrier mounts Message-ID: <20170504150017.jz2jwp4iomdkrznc@thunk.org> References: <20170502150351.29452-1-jack@suse.cz> <20170502150351.29452-2-jack@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170502150351.29452-2-jack@suse.cz> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Tue, May 02, 2017 at 05:03:45PM +0200, Jan Kara wrote: > Commit b685d3d65ac7 "block: treat REQ_FUA and REQ_PREFLUSH as > synchronous" removed REQ_SYNC flag from WRITE_FUA implementation. > generic_make_request_checks() however strips REQ_FUA flag from a bio > when the storage doesn't report volatile write cache and thus write > effectively becomes asynchronous which can lead to performance > regressions. This affects superblock writes for ext4. Fix the problem > by marking superblock writes always as synchronous. > > Fixes: b685d3d65ac791406e0dfd8779cc9b3707fea5a3 > CC: linux-ext4@vger.kernel.org > CC: "Theodore Ts'o" > Signed-off-by: Jan Kara Thanks, applied. - Ted