From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi0-f47.google.com ([209.85.218.47]:37377 "EHLO mail-oi0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728187AbeIJTVR (ORCPT ); Mon, 10 Sep 2018 15:21:17 -0400 Received: by mail-oi0-f47.google.com with SMTP id p84-v6so40477170oic.4 for ; Mon, 10 Sep 2018 07:26:56 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <76e07643e9c36e4273588bd3e7f29d1393de4c3d.camel@hpe.com> From: Dan Williams Date: Mon, 10 Sep 2018 07:26:55 -0700 Message-ID: Subject: Re: open sets ext4_da_aops for DAX existing files To: "Kani, Toshi" Cc: "jmoyer@redhat.com" , "linux-fsdevel@vger.kernel.org" , "linux-nvdimm@lists.01.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Mon, Sep 10, 2018 at 7:21 AM, Kani, Toshi wrote: > On Mon, 2018-09-10 at 08:54 -0400, Jeff Moyer wrote: >> "Kani, Toshi" writes: >> >> > I noticed that both ext4_da_aops and ext4_dax_aops are used on DAX >> > mounted ext4 files. Looking at open() path: >> >> Eek. How did you notice this? > > I tested sync path on DAX files to see if it flushes processor cache > properly. Then I noticed that it sometimes does, but sometimes doesn't. > Looking into function traces, I realized that ext4_dax_writepages() and > ext4_writepages() are called depending on their file status. Yikes, and nice find!