Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2321958lqo; Mon, 20 May 2024 02:02:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVFrdQXkdZX4DwScC5Dib6+L7qX/k2XNJJ/lBlQw9iMArG/KsohTazohYpb5l2P4gATJHo+zPEfrevIPngBIgPO7opXl6hJZexNQJ7WTQ== X-Google-Smtp-Source: AGHT+IEOMYpJsCTN0iJHEtpdIRlFXU8pOsgVEI9GAVYblepQWEgP2omj+Wlyu+DOOOwHDmJwKBiA X-Received: by 2002:aa7:d3c3:0:b0:573:5c4f:27a8 with SMTP id 4fb4d7f45d1cf-5735c4f27e2mr19387061a12.35.1716195776216; Mon, 20 May 2024 02:02:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716195772; cv=pass; d=google.com; s=arc-20160816; b=ZQpG91EI8uhi0+Jn5OrbCn4j4PSi86EQZViQyz+L1J2C36YD7DwZDp/joRDCn/NvXq R8o90pMLBscVdlINgCp3qDQ6lkyCuMpsZlfy0rbuKi3Gjt2d5lotPpUV+HIrkLuOEVTf 8qq7hdYDOQOYRSIL3N0C8sriiq4XuuWE5fkzMcG+5Jl4FEJsJOYretfwBTp3xmVOA8Ke bL9gR/tcGbeMmEkcujEGrbZplK361JqCvTu9cF7VHVK+LQZ8lBXTehwfJ0Uks7w7K2/u G5WwGN9A3geMD4+BTgk4XvItWgtpKE1HYOkJFDjUadgMsoQLktSqiE7VXNcemDzL0H4h RAsg== 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 :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=hSOD7K4vOewtBk1Whrdeiegjwrj5hsKF0Rj/P5obSsM=; fh=KTM4KRr/LvGOw9mWzmUOwc0z5L2jyiG0h/ml8qsSDYc=; b=ZfK22cLIQlippmXQ92swPBsq/TSqUDCVAJxzspCow9azoIgCrRp74DaIHICD4dROh+ 69XxjWeeDyFALyoh7ioKF8CTB7TLAdrgEy4uoalK+MA7i4/WeX86DXLCuuz53SoRPEFy Sqpv2gIoEySfIBSaNZ3NcWLCKEdFfowWgxpLpb0dOFNzn3ArcPq6Ws/bivQB5eIsXkZU sHeoFzTjbUM7CqRFH0dnlChrXC/iRPUDuyZwWtyduXxNhFZyBEks3ddX8HhNZA+bJHtx fshFup+mLx9AVQK/5Tk5PEfh4ZGuZ7VeJaa57mS7mYtKKHa2nfD6FyN4KjDwa7OjQA9B rlbg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huaweicloud.com); spf=pass (google.com: domain of linux-kernel+bounces-183512-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183512-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-574f50048c7si6501699a12.199.2024.05.20.02.02.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 02:02:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-183512-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huaweicloud.com); spf=pass (google.com: domain of linux-kernel+bounces-183512-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183512-linux.lists.archive=gmail.com@vger.kernel.org" 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 979201F20FE5 for ; Mon, 20 May 2024 09:02:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E44B21CD02; Mon, 20 May 2024 09:02:40 +0000 (UTC) Received: from dggsgout11.his.huawei.com (unknown [45.249.212.51]) (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 5AE041CA9E; Mon, 20 May 2024 09:02:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716195760; cv=none; b=FBBYVKw6Czp2OmUZXW7f4Fesw8UpbdHC2ogG9/FLX3dS1V1JccINJjOxruaVVkphqgJ5R4GDswEYCeh600I/wp7Ky10a45OhcV3oXJM+kCArDuw2xUcPDOlH2CImJboJ/RYx/1Mh108WdbIdpxE0vfRG8FqxnY8gdCuL2LK/AnU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716195760; c=relaxed/simple; bh=6CusUao6PpuMkyjBw+xlQ/YqOhA5Bv+pa0SxkFDMIQc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=k04lYu67OUW0FtTXsXxSxojkZhBWCi/IJ5+sOc9NFdDbLmPowXCdzVO+RosmErwdF6HYIE1dkEk5ptW75s3sBUDZiGjsMYvY06hGRxMaiR5yOuKd5idjpvnKJ7mmpGiPJmpadO6IUBcJrgrNuWJegKkeNE7+mE7TbXR95qyk24k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=huaweicloud.com; spf=pass smtp.mailfrom=huaweicloud.com; arc=none smtp.client-ip=45.249.212.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=huaweicloud.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huaweicloud.com Received: from mail.maildlp.com (unknown [172.19.163.235]) by dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4VjWmJ2cjCz4f3lg2; Mon, 20 May 2024 17:02:24 +0800 (CST) Received: from mail02.huawei.com (unknown [10.116.40.112]) by mail.maildlp.com (Postfix) with ESMTP id BB7DD1A10E3; Mon, 20 May 2024 17:02:34 +0800 (CST) Received: from [10.174.177.174] (unknown [10.174.177.174]) by APP1 (Coremail) with SMTP id cCh0CgAn9g6nEUtmLYqyNA--.2293S3; Mon, 20 May 2024 17:02:34 +0800 (CST) Message-ID: Date: Mon, 20 May 2024 17:02:31 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.1.2 Subject: Re: [PATCH v2 05/12] cachefiles: add output string to cachefiles_obj_[get|put]_ondemand_fd Content-Language: en-US To: Jingbo Xu , netfs@lists.linux.dev, dhowells@redhat.com, jlayton@kernel.org Cc: hsiangkao@linux.alibaba.com, zhujia.zj@bytedance.com, linux-erofs@lists.ozlabs.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, yangerkun@huawei.com, houtao1@huawei.com, yukuai3@huawei.com, wozizhi@huawei.com, Baokun Li , libaokun@huaweicloud.com References: <20240515084601.3240503-1-libaokun@huaweicloud.com> <20240515084601.3240503-6-libaokun@huaweicloud.com> From: Baokun Li In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-CM-TRANSID:cCh0CgAn9g6nEUtmLYqyNA--.2293S3 X-Coremail-Antispam: 1UD129KBjvJXoW7Zr4UWrW5CF4fGr4kZw4fKrg_yoW8ArWkpF ZIk3WUKFyI9397Krn7uF13Jr18GayDKF9Fq34UWr1Yyw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: >> From: Baokun Li >> >> This lets us see the correct trace output. >> >> Fixes: c8383054506c ("cachefiles: notify the user daemon when looking up cookie") >> Signed-off-by: Baokun Li > > Could we move this simple fix to the beginning of the patch set? > > Reviewed-by: Jingbo Xu > Thanks for the review! This patch is here because when adding trace-related output in the last patch (path 4), it was found that cachefiles_obj_[get|put]_ondemand_fd did not have any relevant trace output, so it is added in this patch. Putting it in the first patch may confuse the reader as to why it was added, but it is easier to understand with cachefiles_obj_[get|put]_read_req in front of it. >> --- >> include/trace/events/cachefiles.h | 2 ++ >> 1 file changed, 2 insertions(+) >> >> diff --git a/include/trace/events/cachefiles.h b/include/trace/events/cachefiles.h >> index 119a823fb5a0..bb56e3104b12 100644 >> --- a/include/trace/events/cachefiles.h >> +++ b/include/trace/events/cachefiles.h >> @@ -130,6 +130,8 @@ enum cachefiles_error_trace { >> EM(cachefiles_obj_see_lookup_failed, "SEE lookup_failed") \ >> EM(cachefiles_obj_see_withdraw_cookie, "SEE withdraw_cookie") \ >> EM(cachefiles_obj_see_withdrawal, "SEE withdrawal") \ >> + EM(cachefiles_obj_get_ondemand_fd, "GET ondemand_fd") \ >> + EM(cachefiles_obj_put_ondemand_fd, "PUT ondemand_fd") \ >> EM(cachefiles_obj_get_read_req, "GET read_req") \ >> E_(cachefiles_obj_put_read_req, "PUT read_req") >> -- With Best Regards, Baokun Li