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 lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 81D03C433F5 for ; Mon, 21 Mar 2022 14:31:27 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4KMcW205HNz30Lq for ; Tue, 22 Mar 2022 01:31:26 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=linux.alibaba.com (client-ip=115.124.30.43; helo=out30-43.freemail.mail.aliyun.com; envelope-from=jefflexu@linux.alibaba.com; receiver=) Received: from out30-43.freemail.mail.aliyun.com (out30-43.freemail.mail.aliyun.com [115.124.30.43]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4KMcVx0Zb6z2xKR for ; Tue, 22 Mar 2022 01:31:19 +1100 (AEDT) X-Alimail-AntiSpam: AC=PASS; BC=-1|-1; BR=01201311R451e4; CH=green; DM=||false|; DS=||; FP=0|-1|-1|-1|0|-1|-1|-1; HT=e01e04357; MF=jefflexu@linux.alibaba.com; NM=1; PH=DS; RN=16; SR=0; TI=SMTPD_---0V7r0AMW_1647873068; Received: from 192.168.31.65(mailfrom:jefflexu@linux.alibaba.com fp:SMTPD_---0V7r0AMW_1647873068) by smtp.aliyun-inc.com(127.0.0.1); Mon, 21 Mar 2022 22:31:10 +0800 Message-ID: <774ac783-98f8-eedb-af55-ff99eef5369c@linux.alibaba.com> Date: Mon, 21 Mar 2022 22:31:08 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: Re: [PATCH v5 05/22] cachefiles: notify user daemon when withdrawing cookie Content-Language: en-US To: David Howells References: <20220316131723.111553-6-jefflexu@linux.alibaba.com> <20220316131723.111553-1-jefflexu@linux.alibaba.com> <1030364.1647872428@warthog.procyon.org.uk> From: JeffleXu In-Reply-To: <1030364.1647872428@warthog.procyon.org.uk> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-BeenThere: linux-erofs@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development of Linux EROFS file system List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-erofs@lists.ozlabs.org, willy@infradead.org, linux-kernel@vger.kernel.org, joseph.qi@linux.alibaba.com, linux-cachefs@redhat.com, gregkh@linuxfoundation.org, linux-fsdevel@vger.kernel.org, luodaowen.backend@bytedance.com, gerry@linux.alibaba.com, torvalds@linux-foundation.org Errors-To: linux-erofs-bounces+linux-erofs=archiver.kernel.org@lists.ozlabs.org Sender: "Linux-erofs" On 3/21/22 10:20 PM, David Howells wrote: > Jeffle Xu wrote: > >> Notify user daemon that cookie is going to be withdrawed, providing a > > "withdrawn". Thanks. > >> + /* CLOSE request doesn't look forward a reply */ > > I'm not sure what you mean. When cookie gets withdrawn, Cachefiles will send a CLOSE request to user daemon, telling that the associated anon_fd could be closed. But it's just a hint. User daemon could keep the anon_fd open when it receives the CLOSE request. After sending the CLOSE request, Cachefiles will go on the process of withdrawing cookie and won't wait for a reply synchronously. So CLOSE request is just a hint to user daemon, and it doesn't need to be replied. -- Thanks, Jeffle