Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1319114iob; Fri, 29 Apr 2022 02:48:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyBK34srjbRxBiTKe8QfhMLDt4Eq84puUHdyXuJmXoDpnCSrLMUAlYcxo5XV08DowyUh8Cf X-Received: by 2002:a05:6512:2303:b0:471:b4e8:6a5b with SMTP id o3-20020a056512230300b00471b4e86a5bmr28105737lfu.285.1651225694227; Fri, 29 Apr 2022 02:48:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651225694; cv=none; d=google.com; s=arc-20160816; b=YTEOVCzGh8BiiqkAulfYhJYKPUvsl5KPxTqXQ4CS47o+aE2RFPj31HSBksbD1E1vot Uw2p4eLn5x1p59k9g57KAjhjrrAHBpze6fKggmhGAF3bpDFV3/cegbfTjwQBSFCuaxFU Yj0y3QC3ZIjj5+DPMmOvcRENbREViGoFrqaGPQYcRCYac0IL/jcEjTWR/0y9kPS1gHeD +juvXDFYL2yfFqOceb45EPU54rOw+IhyLuv4REQ1jVbXmVOdOu7TXf/VPn3RAY74hxOo muw4mcvLUtvxUSb4N6QHRxnTNi8/zN4rSMnkDKdyX6UKemUjtiznL/Lq4yHV0UJBMaNe sDAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:mime-version :content-transfer-encoding:references:in-reply-to:subject:cc:to:from :date; bh=tnMCHThEVuJvnMuSUrj9Q+RXIGVxfVqbdF/+/NcKHus=; b=A+2i6q+Of13UNdElueOVurtfT3CTrvtwfGHkDXczryZsqxWKqs8EfsMlHHW/nECGY5 IL7TWJd0qQxJMqdQx/+GM5EtDscc60brSyhHzpWtQng2qsLtQ8Jv34MOe1xTrat+idTK mntmR2LpebFSMSJwz5oqNPG9wgatux7nZDjDZJ5mSylK1JuRTJuI8Oj8RZwJ+csf1R2+ gsqE72UsnOrSX73bxxLE+5bCWhtlpRVn6oKZ/S4NvgnI8mso199Kcpd13xYeeU7c6CzM /TIqCp9SHDxNFwukroGHeFUE06tkzCKVDMonGl81r1XxPV3vqqLqfS2yemoeW/sVvmc3 HQRA== 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:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u19-20020ac248b3000000b00449fff28205si5746162lfg.391.2022.04.29.02.47.46; Fri, 29 Apr 2022 02:48:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347121AbiD1N0R (ORCPT + 99 others); Thu, 28 Apr 2022 09:26:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346967AbiD1N0N (ORCPT ); Thu, 28 Apr 2022 09:26:13 -0400 Received: from zg8tmty1ljiyny4xntqumjca.icoremail.net (zg8tmty1ljiyny4xntqumjca.icoremail.net [165.227.154.27]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 3E860AC91D; Thu, 28 Apr 2022 06:22:53 -0700 (PDT) Received: by ajax-webmail-mail-app4 (Coremail) ; Thu, 28 Apr 2022 21:22:11 +0800 (GMT+08:00) X-Originating-IP: [125.120.151.211] Date: Thu, 28 Apr 2022 21:22:11 +0800 (GMT+08:00) X-CM-HeaderCharset: UTF-8 From: "Lin Ma" To: "Greg KH" Cc: "Duoming Zhou" , krzysztof.kozlowski@linaro.org, pabeni@redhat.com, linux-kernel@vger.kernel.org, davem@davemloft.net, alexander.deucher@amd.com, akpm@linux-foundation.org, broonie@kernel.org, netdev@vger.kernel.org, "Jakub Kicinski" Subject: Re: [PATCH net v4] nfc: ... device_is_registered() is data race-able X-Priority: 3 X-Mailer: Coremail Webmail Server Version XT5.0.13 build 20210104(ab8c30b6) Copyright (c) 2002-2022 www.mailtech.cn zju.edu.cn In-Reply-To: <20220428060628.713479b2@kernel.org> References: <20220427011438.110582-1-duoming@zju.edu.cn> <20220427174548.2ae53b84@kernel.org> <38929d91.237b.1806f05f467.Coremail.linma@zju.edu.cn> <2d7c9164.2b1f.1806f2a8ed9.Coremail.linma@zju.edu.cn> <15d09db2.2f76.1806f5c4187.Coremail.linma@zju.edu.cn> <20220428060628.713479b2@kernel.org> Content-Transfer-Encoding: base64 Content-Type: text/plain; charset=UTF-8 MIME-Version: 1.0 Message-ID: X-Coremail-Locale: en_US X-CM-TRANSID: cS_KCgAXGfAElWpiuIz8AQ--.797W X-CM-SenderInfo: qtrwiiyqvtljo62m3hxhgxhubq/1tbiAwMOElNG3GhOdQAEsC X-Coremail-Antispam: 1Ur529EdanIXcx71UUUUU7IcSsGvfJ3iIAIbVAYjsxI4VWxJw CS07vEb4IE77IF4wCS07vE1I0E4x80FVAKz4kxMIAIbVAFxVCaYxvI4VCIwcAKzIAtYxBI daVFxhVjvjDU= X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00, RCVD_IN_BL_SPAMCOP_NET,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS 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 SGVsbG8gdGhlcmUsCgo+IAo+IFllcywgdGhhdCBsb29rcyBiZXR0ZXIsIAoKQ29vbCwgdGhhbmtz IGFnYWluIGZvciBnaXZpbmcgY29tbWVudHMuIDopCgo+IGJ1dCB3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