From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 828F7EB64DA for ; Thu, 20 Jul 2023 07:32:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230042AbjGTHcu (ORCPT ); Thu, 20 Jul 2023 03:32:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229801AbjGTHcs (ORCPT ); Thu, 20 Jul 2023 03:32:48 -0400 Received: from out-3.mta0.migadu.com (out-3.mta0.migadu.com [IPv6:2001:41d0:1004:224b::3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E649EC for ; Thu, 20 Jul 2023 00:32:47 -0700 (PDT) Message-ID: <0fe482ce-cf21-b90b-38b7-0cf378398c6e@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1689838365; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=CK5MzQ87pMNg1LRn1dY7l5Z+yUTcQHhNXZVPAMs2mng=; b=Dc+/5WdUpfq3ogQMuWFThg0mcwiRxJ6WFZr3jeq6qmqG8UpIx34FAnJi185n9kZlWV9ZOr cz/gslT5rYa2FYILThMPL8ZMQsszgebhrE5IwPGcvLHYKzhaQips3n81HC7+S/4SI1MdDu W+Fdx1YFlGQgOVdj4r5SYF1pCW4TpX4= Date: Thu, 20 Jul 2023 15:32:39 +0800 MIME-Version: 1.0 Subject: Re: [PATCH v3 0/3] fuse: add a new fuse init flag to relax restrictions in no cache mode Content-Language: en-US X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Hao Xu To: fuse-devel@lists.sourceforge.net Cc: miklos@szeredi.hu, bernd.schubert@fastmail.fm, linux-fsdevel@vger.kernel.org, Wanpeng Li , cgxu519@mykernel.net References: <20230630094602.230573-1-hao.xu@linux.dev> In-Reply-To: <20230630094602.230573-1-hao.xu@linux.dev> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On 6/30/23 17:45, Hao Xu wrote: > From: Hao Xu > > Patch 1 is a fix for private mmap in FOPEN_DIRECT_IO mode > This is added here together since the later two depends on it. > Patch 2 is the main dish > Patch 3 is to maintain direct write logic for shared mmap in FOPEN_DIRECT_IO mode > > v2 -> v3 > add patch 1 fix here, and adjust it follow Bernd's comment > add patch 3 which does right thing for shared mmap in FOPEN_DIRECT_IO mode > > v1 -> v2: > make the new flag a fuse init one rather than a open flag since it's > not common that different files in a filesystem has different > strategy of shared mmap. > > Hao Xu (3): > fuse: invalidate page cache pages before direct write > fuse: add a new fuse init flag to relax restrictions in no cache mode > fuse: write back dirty pages before direct write in direct_io_relax > mode > > fs/fuse/file.c | 26 +++++++++++++++++++++++--- > fs/fuse/fuse_i.h | 3 +++ > fs/fuse/inode.c | 5 ++++- > include/uapi/linux/fuse.h | 1 + > 4 files changed, 31 insertions(+), 4 deletions(-) > Ping this one. Hi Miklos, Could you take a look at this one when you have time, since Bernd is going to make his patch separate, this series is ready for reviewing. Thanks, Hao