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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2482EC433F5 for ; Mon, 21 Mar 2022 14:33:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349265AbiCUOe2 (ORCPT ); Mon, 21 Mar 2022 10:34:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349927AbiCUOdQ (ORCPT ); Mon, 21 Mar 2022 10:33:16 -0400 Received: from out30-57.freemail.mail.aliyun.com (out30-57.freemail.mail.aliyun.com [115.124.30.57]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EEE13255A1; Mon, 21 Mar 2022 07:31:12 -0700 (PDT) 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 Cc: linux-cachefs@redhat.com, xiang@kernel.org, chao@kernel.org, linux-erofs@lists.ozlabs.org, torvalds@linux-foundation.org, gregkh@linuxfoundation.org, willy@infradead.org, linux-fsdevel@vger.kernel.org, joseph.qi@linux.alibaba.com, bo.liu@linux.alibaba.com, tao.peng@linux.alibaba.com, gerry@linux.alibaba.com, eguan@linux.alibaba.com, linux-kernel@vger.kernel.org, luodaowen.backend@bytedance.com 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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