Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2412602lqb; Mon, 27 May 2024 21:03:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV9yfccEo8BG4NgJUVB1iVFaHUmngO4JAOHebzdyyMlJpRCaruvTcbkVsNO+sCifHhnpa1Z0COvRJTqTQb6xvsryfCzQwDqmzC3hAkdCg== X-Google-Smtp-Source: AGHT+IFWtNFHTTYlC7pI2P8Gmc1xVZmSh9osdm01gc5AN9PYQLZvG1wOfxKFv6SZvQeqhTC0XVIY X-Received: by 2002:a05:6512:4cc:b0:528:16d7:b6c7 with SMTP id 2adb3069b0e04-529674653femr9628217e87.58.1716869013270; Mon, 27 May 2024 21:03:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716869013; cv=pass; d=google.com; s=arc-20160816; b=kGzjCf0EG47wulL8+FbozruP/tc/9kR7MvaXv0lHVuDK063NUHe1zMo8SCTqrhHKre 4cnRTSCK/6j0dqs1MS80WKxyxWB/J5+72Hdikfsae+6M1OU60aMP3+4gsF+ZRTVNgJH4 nAagi1RLNx5Jr9QaHX2aIK0890tzwOLf3ruqvYLa/D6st38WTgzx02H0T0o5WSt0ggSe HQtTkL6XMmurBv/q88Sb8nANFw95xPHDZ1FIuokX9maEY/AqFVjVwhZHUE68oAmaocES 2N7a/xGmxG0Jc57cGGKnrEuJBQk2q27NG9lnbrV3WnnVggApAKSuadcP7QI6ctaXmDtF tcVA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:date:message-id:dkim-signature; bh=Ufbccdg7n9u75JgmNDr4YagbSZ/oALnqCYROgJ4t6Ks=; fh=gn3jNBmBsQOnclF6xMZWxwDr/2v6rlKE9Ylm/idn3dM=; b=xeUUbkHq810IFSSSGFxZvkI9ieCyYZW4Csxh3RP1cEV4/GAX6QRpLU/FqECq9ju8Mz KgJ1sVGT0XND3xsrqTHzIUkmyGEgmuCIc/AnBEcERn500WBA3cKgI0c2Jnm1jsth+gjz u02OoNbwNV8gb2GChswb34adxJXapR0ifmnV+bt3h9E4rl9gonVuO+qPnzHODY7v+L/Y lw5hFsUJVzKVCOjOwQw5rKt3h9uAyr58fsOQuTYMcKyglwwFtKeljbR//livbqoA9pF5 dBreo0twQ4kZ0+cRgQ5ko8rIuJYHgMWHNHXbbSnNeZps3ZMMTR69GfAAz2tjf+S4vgTV 6uvQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.alibaba.com header.s=default header.b=G22W+gZa; arc=pass (i=1 spf=pass spfdomain=linux.alibaba.com dkim=pass dkdomain=linux.alibaba.com dmarc=pass fromdomain=linux.alibaba.com); spf=pass (google.com: domain of linux-kernel+bounces-191726-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191726-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.alibaba.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a626cd925c2si469270866b.772.2024.05.27.21.03.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 21:03:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-191726-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.alibaba.com header.s=default header.b=G22W+gZa; arc=pass (i=1 spf=pass spfdomain=linux.alibaba.com dkim=pass dkdomain=linux.alibaba.com dmarc=pass fromdomain=linux.alibaba.com); spf=pass (google.com: domain of linux-kernel+bounces-191726-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191726-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.alibaba.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 6848E1F226EE for ; Tue, 28 May 2024 04:03:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CA8E318B09; Tue, 28 May 2024 04:02:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b="G22W+gZa" Received: from out30-133.freemail.mail.aliyun.com (out30-133.freemail.mail.aliyun.com [115.124.30.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8818418E25; Tue, 28 May 2024 04:02:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716868975; cv=none; b=uwRTypTMHeuHNF2GQY+KsaCULlccgTZyzLQ98M8XitwP7saCxYq5fLw6RUXenaI5pYPXFFqyERT5IdVAKlWlARF7IjJszxtpN1M3Y57o6ODVIFTLjCSDMN8ZqrLO05RaKPca2HvWTwCs19DYU0Sv3SGkBUU2ezNOc2XZ8rlJB1o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716868975; c=relaxed/simple; bh=RUryWDZM8/CxUIrss5UeEa11d04TB5ISYy47F+40c0c=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=hR7Os1E1C8St044+1Do3m2dtK5ZxI39MzfbQuphwqh1nc8eR82/q8IlqR5sTHnmzpHkvSa8ufkoKQ4DRFmLFaJ3L/kH7w2cMARKdoY9zQ2X06olodTYMmsCOtMeZYxruxRnbxBsK7wxkgmCqbydwCz6hciOYxaFYbVWHYY+9vSI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b=G22W+gZa; arc=none smtp.client-ip=115.124.30.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1716868969; h=Message-ID:Date:MIME-Version:Subject:To:From:Content-Type; bh=Ufbccdg7n9u75JgmNDr4YagbSZ/oALnqCYROgJ4t6Ks=; b=G22W+gZaqt6axuVFxTgBZS047Swa+2n8LDbTYPYY7FF8N/f7MO9AMCIIIGHVklA8Cims+rm7Ej7hntpejd100Cnufwfa2vbr+it7s1YB2RHqMFX/iAO6RhTlML2uYpCXAa63vP9hYHsPX0TsL3xHagNnR8V3BXxzaTjx+XRyRTg= X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R201e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=maildocker-contentspam033037067112;MF=hsiangkao@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0W7OKPNz_1716868966; Received: from 30.97.48.200(mailfrom:hsiangkao@linux.alibaba.com fp:SMTPD_---0W7OKPNz_1716868966) by smtp.aliyun-inc.com; Tue, 28 May 2024 12:02:48 +0800 Message-ID: Date: Tue, 28 May 2024 12:02:46 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC 0/2] fuse: introduce fuse server recovery mechanism To: Jingbo Xu , Miklos Szeredi , Christian Brauner Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, winters.zc@antgroup.com References: <20240524064030.4944-1-jefflexu@linux.alibaba.com> <858d23ec-ea81-45cb-9629-ace5d6c2f6d9@linux.alibaba.com> <6a3c3035-b4c4-41d9-a7b0-65f72f479571@linux.alibaba.com> From: Gao Xiang In-Reply-To: <6a3c3035-b4c4-41d9-a7b0-65f72f479571@linux.alibaba.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2024/5/28 11:08, Jingbo Xu wrote: > > > On 5/28/24 10:45 AM, Jingbo Xu wrote: >> >> >> On 5/27/24 11:16 PM, Miklos Szeredi wrote: >>> On Fri, 24 May 2024 at 08:40, Jingbo Xu wrote: >>> >>>> 3. I don't know if a kernel based recovery mechanism is welcome on the >>>> community side. Any comment is welcome. Thanks! >>> >>> I'd prefer something external to fuse. >> >> Okay, understood. >> >>> >>> Maybe a kernel based fdstore (lifetime connected to that of the >>> container) would a useful service more generally? >> >> Yeah I indeed had considered this, but I'm afraid VFS guys would be >> concerned about why we do this on kernel side rather than in user space. Just from my own perspective, even if it's in FUSE, the concern is almost the same. I wonder if on-demand cachefiles can keep fds too in the future (thus e.g. daemonless feature could even be implemented entirely with kernel fdstore) but it still has the same concern or it's a source of duplication. Thanks, Gao Xiang >> >> I'm not sure what the VFS guys think about this and if the kernel side >> shall care about this. >> > > There was an RFC for kernel-side fdstore [1], though it's also > implemented upon FUSE. > > [1] > https://lore.kernel.org/all/CA+a=Yy5rnqLqH2iR-ZY6AUkNJy48mroVV3Exmhmt-pfTi82kXA@mail.gmail.com/T/ > > >