Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp421751pxk; Fri, 11 Sep 2020 10:25:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxWK3/exhbZf0Ex/5iyN9BU/n4hRVU4ZkAQweApRiFFj55xiKQJeESFdxc6iDNgN5aB1hMq X-Received: by 2002:a05:6402:515:: with SMTP id m21mr3344394edv.348.1599845108974; Fri, 11 Sep 2020 10:25:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599845108; cv=none; d=google.com; s=arc-20160816; b=roWNAM/wD60kMMurkGR1XZBiQ2oI7khxOumC4QJHT2Vq2f4rwjxf6qGteATi9pnpoX 5ddl6QXrd2IyZcogsTy2Uj1+ZHgvx8AQBGm3r1LSSWvV7j1FoFHlmM3+63qXQN/OGY+E lIYwkMxO3nwK4HpjOjCbsMs6bvNMKeZmKEVA0v46HNUsROkPSefPKxFOITNjQ5D3kfSU AEpU//TY0alhJPe4nvFhGPwTx445z2ht92s7Dz+zG8Nf82UpswFUrXn7KcXzlXv3T7u3 S+QwDse+lFt9+a7F/9mxhEzSljLAtJCzXYifOQnFoa117CkDaWh6x83QfxcE4ULFxprr UUBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=69/MIdTNBXtljk9O8CO0dWSDv8qzVuAfM6FGYy8egG0=; b=uFLrlJI7Z5ytw+wfCASGBcIkz/5AvDeGa+00RbvwGqada2azARMu7cE4mHlJfyKU2H 50/F0T8WS+TwrkflOc/GjLU3YNqzbSetv87kYWrkZng7nwpzrUBJGomzeUU9ZGNOvPly s2CDBGD2KU503L/lhH5UPHZchpyelOUSzQAQNp4XvsxT97VK578lmNQsVxSc03qACiaw v+FfePC1UEMs1ziViyh2DED/yJn6r/rt8XQUuz6TN0NYl2YoL/7HwFBVxV83anthon8R CsMIqZ50GM//Z+hg3wTsaaoYxxZYoVH8X1xAr6lmR/B43eaANfDkIqTG1LCs3e2f2puf 27QA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=J9DhvQOi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b21si1737168edx.329.2020.09.11.10.24.45; Fri, 11 Sep 2020 10:25:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=J9DhvQOi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726140AbgIKRXi (ORCPT + 99 others); Fri, 11 Sep 2020 13:23:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725895AbgIKRX1 (ORCPT ); Fri, 11 Sep 2020 13:23:27 -0400 Received: from mail-il1-x143.google.com (mail-il1-x143.google.com [IPv6:2607:f8b0:4864:20::143]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2AEBC0613ED for ; Fri, 11 Sep 2020 10:23:26 -0700 (PDT) Received: by mail-il1-x143.google.com with SMTP id x2so9720509ilm.0 for ; Fri, 11 Sep 2020 10:23:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=69/MIdTNBXtljk9O8CO0dWSDv8qzVuAfM6FGYy8egG0=; b=J9DhvQOicouxRDyUSKh47GW2ozyvtioXpkK+4oAqexRfz3hSdCCyUaahRUUhiL9Au6 lMZA+ZkJS3NdgJwZuNWv4LhmY+9hg13PksG21pkbCRi8WddjPTMcimJuOtBV5zP3plxj bZpQB8vPhUhgZNH4GrbrmSNCtCE7JpSD6SYeFfNFzntpOrQzc/zBqyz7G9uZnyaFzMvV EElXcs/vmgNFURY1nCt0MHN6pwxmhnSsoiY7UPwPHiLruUJNaREk/tmeAwGpndJoWz8h 3y4YLJGkAm9Ux/LVKbVPFfhf5S2p6y9AtqxL5gevLpty5Zbn65SnGgfJVyNaIshY2uoy j99A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=69/MIdTNBXtljk9O8CO0dWSDv8qzVuAfM6FGYy8egG0=; b=LNsD6aHxaaW7WEQcu4yqG5CsdVYbkXQ8rBvV8P5B3RcaJt5z2+Xh4qGuCoDVZrgLKA MNr9HBU/CKLad3hcAKXngsmm3TO5ngFXWdzjsHWAgQ1YlOoSsqNZJfQ2u9gmVnnQBLCr kKMhyclPdprxpYBlX047yG8BCVb8KMfU66hcFnlwEBfRMN0kpcHx5i5ooVNJTkbG/uM4 b7/O5zRCwqPO5fABm26OFTkbbTZqUwapJTFKmZDhVfJd3U+cP8iYMoMY2f+i22bVRErb aIJTZfsADykW8m7dRt/lmpR9ekXJ3sZR2CQGBt98S5V33TIlo+X9poNSj37k/3SMyVA/ P7pQ== X-Gm-Message-State: AOAM531Urwxdc6e8O57WPob8IEQQNRMZZAB+7LHeEcWkanmBT7JLsBL4 jCThLr4a1tPoVza+Tk8vElnTRequuXwpW/12 X-Received: by 2002:a92:3007:: with SMTP id x7mr2682114ile.48.1599845004743; Fri, 11 Sep 2020 10:23:24 -0700 (PDT) Received: from [192.168.1.10] ([65.144.74.34]) by smtp.gmail.com with ESMTPSA id t10sm1518014ilf.34.2020.09.11.10.23.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 11 Sep 2020 10:23:23 -0700 (PDT) Subject: Re: [PATCH V8 3/3] fuse: Handle AIO read and write in passthrough To: Alessio Balsini , Miklos Szeredi Cc: Akilesh Kailash , Amir Goldstein , David Anderson , Eric Yan , Jann Horn , Martijn Coenen , Palmer Dabbelt , Paul Lawrence , Stefano Duo , Zimuzo Ezeozue , fuse-devel@lists.sourceforge.net, kernel-team@android.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org References: <20200911163403.79505-1-balsini@android.com> <20200911163403.79505-4-balsini@android.com> From: Jens Axboe Message-ID: Date: Fri, 11 Sep 2020 11:23:22 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200911163403.79505-4-balsini@android.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/11/20 10:34 AM, Alessio Balsini wrote: > Extend the passthrough feature by handling asynchronous IO both for read > and write operations. > When an AIO request is received, targeting a FUSE file with passthrough > functionality enabled, a new identical AIO request is created, the file > pointer of which is updated with the file pointer of the lower file system, > and the completion handler is set with a special AIO passthrough handler. > The lower file system AIO request is allocated in dynamic kernel memory > and, when it completes, the allocated memory is freed and the completion > signal is propagated to the FUSE AIO request by triggering its completion > callback as well. > > Signed-off-by: Alessio Balsini > --- > fs/fuse/passthrough.c | 66 +++++++++++++++++++++++++++++++++++++++++-- > 1 file changed, 63 insertions(+), 3 deletions(-) > > diff --git a/fs/fuse/passthrough.c b/fs/fuse/passthrough.c > index 44a78e02f45d..87b57b26fd8a 100644 > --- a/fs/fuse/passthrough.c > +++ b/fs/fuse/passthrough.c > @@ -2,10 +2,16 @@ > > #include "fuse_i.h" > > +#include What is this include for? It's not using any aio parts at all. -- Jens Axboe