Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp1914530rdh; Sat, 25 Nov 2023 07:07:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IH7zmS8h0AG3FAum7Z6tAPTneTouAU0KPSV2YkZnjqcPOIL7Ty+k/hrY8gIag/lt4oJs2US X-Received: by 2002:a17:902:c944:b0:1cf:a2e7:f843 with SMTP id i4-20020a170902c94400b001cfa2e7f843mr8871814pla.23.1700924870167; Sat, 25 Nov 2023 07:07:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700924870; cv=none; d=google.com; s=arc-20160816; b=ZX46s0ivpr1Tr2MzXzWIjJIm6OwvyPh1UOckzxvA0e70a/oa/bBNlyE0bZwUBxPcBl BWoUUuodGpopxtW5qba2n8JgWL4kN52z6n8CYwUndtB91aaZEKCL3roOIk21sgVm09JU t1v5km8QKFwWvZfP/YxTrZLKARFsxq0CWrdvfmQqdjEUXW5pMHjVkbh40Sbkghne0bRS jYUDVzMHBkrv4NGVlP0bvZj6zb594lKQVqFhs8Q4ycMMD772zsr6cCO6onQqy/caZScd s+HxuROJI/z9i6l9unQX8yHn+U2CCB2dTSzqU+4zhdBgJ29goTDUn3mWxYQO27KFqfo1 jh8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=PmzLWALWj2ArySx35zfsbtXCVzPFsM2tVX3+xkiELhc=; fh=70J5nHzm1vlOrlAyVTHM0o+OuS8+f+srq2S9Mc+LkGk=; b=rlZXI7GwFpEglAPB1Dd1UFWDudQmMkw8S43c1adKklAq06nuB9Xcnejn66TBJy7I+d 7eRc2PNfzcF6JxZUKTet7Z+n0N6ZjaCPDgv9idsBuF0JRiPr28FQqPaEaWE8wdsxhIFL vZgBhT/fuFVZTqr95GKUhD7Z4xlTQIYM/8JRuEgfB/NEKT6NpcJsuWA9XpJsZUm+qxER bjVKP08o9uEKXkzZ0MDyFTCRxJtHYfM2l4vD6Q0LGehSRTu94WM5XkvrgkSH0ujVN35l yus14joaK4wLw2174s/IxuRdjx1jExLSbQ0M9i8E1oDEiX3J2ukpKIB2qSY0OwKnjOZi VOcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="F6m/Q3m2"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id m11-20020a170902db0b00b001cfbe9c47a2si384031plx.250.2023.11.25.07.07.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Nov 2023 07:07:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="F6m/Q3m2"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 717FC8087F39; Sat, 25 Nov 2023 07:07:47 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231976AbjKYPHc (ORCPT + 99 others); Sat, 25 Nov 2023 10:07:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229906AbjKYPHa (ORCPT ); Sat, 25 Nov 2023 10:07:30 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15ED1F2 for ; Sat, 25 Nov 2023 07:07:37 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 46699C433C8; Sat, 25 Nov 2023 15:07:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700924856; bh=/q54+mS73n57N6iwq9jTkLf9YVzPjCrTltEnmyKnZTc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=F6m/Q3m2C9dv/x1IrvMwUpR8bpLlJNc24Gp3v/Vc2ovKIDlh0vNRu2OEmZtSizOKf PAy35UaIxh08a5Mu13pW51gdbl7Re9EVHipdFS+kl4oAmzE1dXWBIgu6HAFPzX/TaA qnZk21Rr/tFPxpjYcqN+Eoti28DB6PsoSLwwW3oOowf+guc95M96Jx0ov5G0Sfebd0 6bEE6s8dIZ6RyzqH10Yp1Fiwr1wUzq5TW1uaosYT0s0qxlMhrQXFCfpnV/wq+Gb3kG luMgV2ANlxx46DG1bGRPoHSg7bbeUKi4uzW98rmnQbJt1sZaDQuHRWAvB0udThpC9E ps6nvUJ51ysGQ== From: Christian Brauner To: dhowells@redhat.com, Jia Zhu Cc: Christian Brauner , linux-erofs@lists.ozlabs.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, jefflexu@linux.alibaba.com, Gao Xiang , linux-cachefs@redhat.com Subject: Re: [PATCH V6 RESEND 0/5] cachefiles: Introduce failover mechanism for on-demand mode Date: Sat, 25 Nov 2023 16:06:34 +0100 Message-ID: <20231125-latschen-bierkrug-d3bad5531859@brauner> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231120041422.75170-1-zhujia.zj@bytedance.com> References: <20231120041422.75170-1-zhujia.zj@bytedance.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" X-Developer-Signature: v=1; a=openpgp-sha256; l=2176; i=brauner@kernel.org; h=from:subject:message-id; bh=/q54+mS73n57N6iwq9jTkLf9YVzPjCrTltEnmyKnZTc=; b=owGbwMvMwCU28Zj0gdSKO4sYT6slMaQm8Va+zrfe2JXb8Ig7bXpieu4x03bGd/5nbIKfnvP9d yv7TvbNjlIWBjEuBlkxRRaHdpNwueU8FZuNMjVg5rAygQxh4OIUgIkI72JkOPD/TmjayXeu3hn3 mrh/1vBJrpO1NHA1emn49sWU2YuX8jAy7Itw154XdWgxD/tLWUb93q6V7DYMQVIF575kt51ZJdP BCQA= X-Developer-Key: i=brauner@kernel.org; a=openpgp; fpr=4880B8C9BD0E5106FC070F4F7B3C391EFEA93624 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Sat, 25 Nov 2023 07:07:47 -0800 (PST) On Mon, 20 Nov 2023 12:14:17 +0800, Jia Zhu wrote: > Changes since v5: > In cachefiles_daemon_poll(), replace xa_for_each_marked with xas_for_each_marked. > > [Background] > ============ > In the on-demand read mode, if user daemon unexpectedly closes an on-demand fd > (for example, due to daemon crashing), subsequent read operations and inflight > requests relying on these fd will result in a return value of -EIO, indicating > an I/O error. > While this situation might be tolerable for individual personal users, it > becomes a significant concern when it occurs in a real public cloud service > production environment (like us). Such I/O errors will be propagated to cloud > service users, potentially impacting the execution of their jobs and > compromising the overall stability of the cloud service. Besides, we have no > way to recover this. > > [...] Applied to the vfs.fscache branch of the vfs/vfs.git tree. Patches in the vfs.fscache branch should appear in linux-next soon. Please report any outstanding bugs that were missed during review in a new review to the original patch series allowing us to drop it. It's encouraged to provide Acked-bys and Reviewed-bys even though the patch has now been applied. If possible patch trailers will be updated. Note that commit hashes shown below are subject to change due to rebase, trailer updates or similar. If in doubt, please check the listed branch. tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git branch: vfs.fscache [1/5] cachefiles: introduce object ondemand state https://git.kernel.org/vfs/vfs/c/357a18d03314 [2/5] cachefiles: extract ondemand info field from cachefiles_object https://git.kernel.org/vfs/vfs/c/3c5ecfe16e76 [3/5] cachefiles: resend an open request if the read request's object is closed https://git.kernel.org/vfs/vfs/c/0a7e54c1959c [4/5] cachefiles: narrow the scope of triggering EPOLLIN events in ondemand mode https://git.kernel.org/vfs/vfs/c/b817e22b2e91 [5/5] cachefiles: add restore command to recover inflight ondemand read requests https://git.kernel.org/vfs/vfs/c/e73fa11a356c