From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from verein.lst.de ([213.95.11.211]:35201 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750941AbcGAEed (ORCPT ); Fri, 1 Jul 2016 00:34:33 -0400 Date: Fri, 1 Jul 2016 06:25:10 +0200 From: Christoph Hellwig To: Amir Goldstein Cc: Ming Lei , linux-fsdevel , linux-block , Christoph Hellwig , Jens Axboe Subject: Re: Question about loop device DIO/AIO and FLUSH Message-ID: <20160701042510.GA381@lst.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Thu, Jun 30, 2016 at 11:54:48PM +0300, Amir Goldstein wrote: > Hi Ming, > > I was reading through the code of loop DIO/AIO > and I was wondering whether lo_req_flush() really > honors REQ_FLUSH by calling vfs_fsync() on a backing file > that is open with O_DIRECT? > > Shouldn't lo_req_flush() actually wait for completion of > all the in-flight loop AIO requests to complete? > Am I missing something? Both fsync and flush semanrics only apply to I/O requests that have already completed.