Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp7859475pxb; Fri, 19 Feb 2021 00:44:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJwnka27jx4ffGZ53gknTVQQIpjVx7glgq+q3nCbPWm2dhg6Hg8C78GDMLTkKcvuarBPBE2v X-Received: by 2002:a17:906:858b:: with SMTP id v11mr7831786ejx.179.1613724251922; Fri, 19 Feb 2021 00:44:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613724251; cv=none; d=google.com; s=arc-20160816; b=P7Fs8vV/1h6gJBv33SvtFLzYHFCPw5VTQuknb/oMzZef60wHKUiEnae7XWdM9PuBiW vXdKHFI7+cddX5t+jMHzGZ7hBwQ6ymQSppvps9iAT+fue+dX0lfxyEbkRMfLMfDP+1mT Bj/WGomDcbVDKWD0oN2G++g3+cwfaeleCvuAUEG9gn/sLc832fwLdHvB5QIWBtuWaTh1 XuTrQm2uGF96wYOXA72bBBiDGkVOQCFVQyVlhq7JkWVTwflkdJkLIRdXFA0bI76ebT3Y 0kyq4Z3VfgaPb8k1uzbZ6XfDZfEKOmygNVaw9ixd3dd45qZJhXiDB03IkRqH/J2SlWB/ biMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=KAX4LYl0kG8JmUeTzz+wEYqEQj0XL2YyaDiep9J2YS8=; b=0WFawPntMO2Wr4AQXORsiWEi/3i9o8cPU7Yh+4z55PrTImZ1jRYu6zpYca0x1qLXem y97z2Q5hwCwiIEaL6gdupOMg3bUvxwMOEqtjHminnp/pY2aH9O8ykyU41b0hF8u74e9d HPb/uvCLSGw6OTmjKXxkO3wYXxGqTgwH56ukvYOLwHfeWWR6rELjzv9m06pHJ4/FtYx3 KIcqt6jFSH6qldPx2KF+6TxWfeMVbsAdOihWlYmee9Tzh/RG2B/6mc0vAKt6ZJcFLmdX tQXJzkEqWGHz4lAKLPH6fopsCVTED30W2rKC2aYvgYdVg42VlrzLFfPNMlpvNAxzf0iZ +6tg== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b="gd/7Fyck"; 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 kl16si5703290ejc.565.2021.02.19.00.43.46; Fri, 19 Feb 2021 00:44:11 -0800 (PST) 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=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b="gd/7Fyck"; 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 S229625AbhBSIlP (ORCPT + 99 others); Fri, 19 Feb 2021 03:41:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229546AbhBSIlO (ORCPT ); Fri, 19 Feb 2021 03:41:14 -0500 Received: from mail-ua1-x929.google.com (mail-ua1-x929.google.com [IPv6:2607:f8b0:4864:20::929]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B488DC061574 for ; Fri, 19 Feb 2021 00:40:33 -0800 (PST) Received: by mail-ua1-x929.google.com with SMTP id t15so1608056ual.6 for ; Fri, 19 Feb 2021 00:40:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=szeredi.hu; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=KAX4LYl0kG8JmUeTzz+wEYqEQj0XL2YyaDiep9J2YS8=; b=gd/7FyckxK787QDZNsZVd1QllF5rpLh64V2h2mv5C+8wsia4dfy1uM3w2MoG50n4cI 4N2ZTX8/CsqKCmT5oZnH2SKk8ICiBcJ4a0TyxUth24i6SmxTnVOSzXuUHOlVTkEW1oP2 T6+IHONQVolDO0REMDZI9A2ijbKT/e6jCzD4Q= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=KAX4LYl0kG8JmUeTzz+wEYqEQj0XL2YyaDiep9J2YS8=; b=GCHirI8fupMPCnsq7uQ3+t+FXwjbjkT5WIfEkkbnOv2wsw9TdWtelzDiSRrwDS/dHr V3W/Dnp0dJEUbJ+UrKEL04Ut4iMk+huGt956lt+8v3rvs3HP4hd1UNookwy/LSVPG+0n aJrfczm9obeN0Qj5RkoC8YFGaTt+UqyfEb+cC3tSM3AAtMUtYCqvRD8Fnva+o8dH6Okj zH7+S4XqWwBp9GpM+DfxFtYNram/SvFsHRMTxM02Qf26qLrM5sKywoCRiqn572Tr4AJY FuUyBoVfOL2ftTXO6b1gCuytfNdjDAZKK5U7O++ZJPidBkHAFczDZHxMnBShP9n6eupt OyIw== X-Gm-Message-State: AOAM530xKU8LeTK8I6VGdMA/Hn/NZiAnGMCM06cqbLpckhdbqw5nXLAY aWk9R6w0IiXlAQxYGfaAzkmOLE1soA/qEswZvOGdvA== X-Received: by 2002:ab0:5963:: with SMTP id o32mr6378901uad.11.1613724032852; Fri, 19 Feb 2021 00:40:32 -0800 (PST) MIME-Version: 1.0 References: <20210125153057.3623715-1-balsini@android.com> <20210125153057.3623715-4-balsini@android.com> In-Reply-To: From: Miklos Szeredi Date: Fri, 19 Feb 2021 09:40:21 +0100 Message-ID: Subject: Re: [PATCH RESEND V12 3/8] fuse: Definitions and ioctl for passthrough To: Peng Tao Cc: Alessio Balsini , Akilesh Kailash , Amir Goldstein , Antonio SJ Musumeci , David Anderson , Giuseppe Scrivano , Jann Horn , Jens Axboe , Martijn Coenen , Palmer Dabbelt , Paul Lawrence , Stefano Duo , Zimuzo Ezeozue , wuyan , fuse-devel , kernel-team , "linux-fsdevel@vger.kernel.org" , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 19, 2021 at 8:05 AM Peng Tao wrote: > > On Wed, Feb 17, 2021 at 9:41 PM Miklos Szeredi wrote: > > What I think would be useful is to have an explicit > > FUSE_DEV_IOC_PASSTHROUGH_CLOSE ioctl, that would need to be called > > once the fuse server no longer needs this ID. If this turns out to > > be a performance problem, we could still add the auto-close behavior > > with an explicit FOPEN_PASSTHROUGH_AUTOCLOSE flag later. > Hi Miklos, > > W/o auto closing, what happens if user space daemon forgets to call > FUSE_DEV_IOC_PASSTHROUGH_CLOSE? Do we keep the ID alive somewhere? Kernel would keep the ID open until explicit close or fuse connection is released. There should be some limit on the max open files referenced through ID's, though. E.g. inherit RLIMIT_NOFILE from mounting task. Thanks, Miklos