Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2306994pxp; Mon, 21 Mar 2022 16:29:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzOXWILpTU5S0yJxqIpgr//cLvlMhh39SNd1/Oi4Y8wr0krsZW23pDcd3robi5C0z9SI10z X-Received: by 2002:a17:903:110d:b0:14d:ca32:cae9 with SMTP id n13-20020a170903110d00b0014dca32cae9mr15382764plh.30.1647905350695; Mon, 21 Mar 2022 16:29:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647905350; cv=none; d=google.com; s=arc-20160816; b=e3oKqx1wqr4yqlwiRYIWangUmfqJth/Z4AKQcmGZxAW49Lfwe5zVzJRxjuFQ2lyPOR 6DuRhQ2C5yMO177i50dQkyTvz/cTDZzQ5/MTSmiq4POWddCIwfsBgYqPwSycsx9uBtn/ TNSmg7vrzLgI3mDO6cC4/2/BH44v0VoinUG8nHV2XeAzEv2N2v85o84hENfJ2YwEsg2a oRaUlvGHlNiPy4ZCCqmWWDK3ml27Q5I6ahqmJOUGAEG7sVdal4M5glhqiyjHBDFZv/p7 u1n0WFP3Ao7jMBaEv/QGDRMZzttMTPGyGGI+xF6vayN3HrDDg7z/rzzCIrevbf0o/xk+ M7Ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=1pvFs6nTat9nfYwoZXhMiLcCjZfZ4tuQsAB1188KzSs=; b=tbcJyiKGbXMzeWPhV7e0wPd3/gQgfRrVrA97KEOxbM3rDbzLUK8b6LplTk+z7qsmUW N8aRooWJwq02I9+wMcqjJDIpoXctfBzDdbBwPJNoGlbermjhumrBS2ephqNhl7Mwp5sk tJ95o0jj1V7UdVrNXhO/QUJ7+ATnVGfgPZ38kust78Lw0f1m2VXYGLIk+IK5XGQ8ofS1 g20WlGTBSjehDYTGT0xwd/llWiAhwouWzjJCDnZLov5YshxCheYKPmRoahZT8xeRBy37 +EkWjAwx/XOeW3DI/MnOaWz631XqdxHW3Py95K3nnfNImp8lW6akvHs4H9A2M8Yeqbpc AHyQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id x18-20020a170902ea9200b00153f31155b7si11170604plb.164.2022.03.21.16.29.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 16:29:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 908A8465CC7; Mon, 21 Mar 2022 15:19:44 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349344AbiCUOe0 (ORCPT + 99 others); Mon, 21 Mar 2022 10:34:26 -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 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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