Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 659F5C2D0B1 for ; Thu, 6 Feb 2020 14:43:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4096920838 for ; Thu, 6 Feb 2020 14:43:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727918AbgBFOnk (ORCPT ); Thu, 6 Feb 2020 09:43:40 -0500 Received: from mx2.suse.de ([195.135.220.15]:54532 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727901AbgBFOnk (ORCPT ); Thu, 6 Feb 2020 09:43:40 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id D1614AC44; Thu, 6 Feb 2020 14:43:38 +0000 (UTC) Received: by quack2.suse.cz (Postfix, from userid 1000) id 5E4861E0DEB; Thu, 6 Feb 2020 15:43:38 +0100 (CET) Date: Thu, 6 Feb 2020 15:43:38 +0100 From: Jan Kara To: Jeff Moyer Cc: Jan Kara , dan.j.williams@intel.com, linux-fsdevel@vger.kernel.org, linux-nvdimm@lists.01.org, willy@infradead.org Subject: Re: [patch] dax: pass NOWAIT flag to iomap_apply Message-ID: <20200206144338.GB26114@quack2.suse.cz> References: <20200206084740.GE14001@quack2.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On Thu 06-02-20 09:33:39, Jeff Moyer wrote: > Jan Kara writes: > > > On Wed 05-02-20 14:15:58, Jeff Moyer wrote: > >> fstests generic/471 reports a failure when run with MOUNT_OPTIONS="-o > >> dax". The reason is that the initial pwrite to an empty file with the > >> RWF_NOWAIT flag set does not return -EAGAIN. It turns out that > >> dax_iomap_rw doesn't pass that flag through to iomap_apply. > >> > >> With this patch applied, generic/471 passes for me. > >> > >> Signed-off-by: Jeff Moyer > > > > The patch looks good to me. You can add: > > > > Reviewed-by: Jan Kara > > > > BTW, I've just noticed ext4 seems to be buggy in this regard and even this > > patch doesn't fix it. So I guess you've been using XFS for testing this? > > That's right, sorry I didn't mention that. Will you send a patch for > ext4, or do you want me to look into it? I've taken down a note in todo list to eventually look into that but if you can have a look, I'm more than happy to remove that entry :). Honza -- Jan Kara SUSE Labs, CR