From: Tejun Heo Subject: Re: [PATCH 1/1] fs/mpage.c: forgotten WRITE_SYNC in case of data integrity write Date: Fri, 14 Mar 2014 10:20:36 -0400 Message-ID: <20140314142036.GI12613@htj.dyndns.org> References: <1392519268-29991-1-git-send-email-r.peniaev@gmail.com> <20140218155945.ee2e22e07fa3b4f242b16a7f@linux-foundation.org> <20140313200119.GB504@quack.suse.cz> <20140313143456.157404fd7f208638ca70e317@linux-foundation.org> <20140314130712.GC12613@htj.dyndns.org> <20140314141143.GH12613@htj.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Andrew Morton , Jan Kara , Alexander Viro , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Jens Axboe To: Roman Peniaev Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Fri, Mar 14, 2014 at 11:17:56PM +0900, Roman Peniaev wrote: > No, no. Not device does not support flush, filesystem does not care about flush. > (take any old school, e.g. ext2) > > We did some write, and then we did fsync. > But filesystem does not support REQ_FLUSH/FUA so block device will never > get the checkpoint where it should really flush everything. > > So, fsync will not guarantee any integrity in that case. Oh, no idea. Fix the filesystem to support REQ_FLUSH? :) -- tejun