Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1886651rwl; Thu, 6 Apr 2023 02:45:28 -0700 (PDT) X-Google-Smtp-Source: AKy350YQuKe6eM82RrsV6JwqogqzRrR8RTdg12mHagXIarTfsprwbPQRqMjtw1gIVImiP7V3USLW X-Received: by 2002:a17:903:1c6:b0:1a1:cb18:7f99 with SMTP id e6-20020a17090301c600b001a1cb187f99mr5953514plh.30.1680774328280; Thu, 06 Apr 2023 02:45:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1680774328; cv=pass; d=google.com; s=arc-20160816; b=HzxIA9O5f1etabRjSeiyCz1zOo+pHZLkSn5KTNauOeQrFkI6rlS2Mq7nBD65lItKjB 33eiQz0WpW86qxvtjKyHeJCtfjOUiwIm1DFePg1meG5vGdiSf0zfKM9h1y2knfL/Is7P IldwMojz0pxvHXrkcK6K0PQMWui8oRCILuEAkL1+4Pq1e2hROaL1n0r4baSyKK7zHp6H YhzqgTYZe6Nkd256ZAuEi72Ds9oSZcH1S7Q5BZjsbqqFnpja2S5QVyPpGXEPt8sJQxZq AMlPNJek+1n7wJyFEXzaSvMXQfVbd1nIVcXK6gxaY4S+ht2PECXBDVGOSGvs1w0FTa4c jQ0A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=qg/FIXGbQfn1wiiz+PdQuOA0m8F8JP0zGij2BbYWW00=; b=gY5xiG/7oIEq7PGB+mN2q3NhjgX0bN+lgTx4RqXAAeT+dAJJju9R0N5R8R+T9Zky4W RqkcC6JyZwSR8DzLJ2ro6pLJ1PfZza/G++HLHnhESSKZNj1zFHJm+11jaJ+YBJp2qp8U p1AbjQu0WSHY34jIddbMl+3kHtkWnSdwzGb/oKH0mYjdzxf1NW6uR8Nwg1aWPid7CeyU 7M9h+/I5yZiqIhYncrFRcbmJ/7sehP/tv4HI/eYXtPQQEMV/HV/fdaW62z84ZzEqXCUy MwXVnpwhqgvz/KaMvyzVRRbbDbFcBlYgaXMYST1qAxxn52ZPgpc6ISybOTPsxKkq60gJ DduA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=fFeMxTVj; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z12-20020a170902708c00b001a0644d1e7esi1289144plk.101.2023.04.06.02.45.15; Thu, 06 Apr 2023 02:45:28 -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; dkim=pass header.i=@vivo.com header.s=selector2 header.b=fFeMxTVj; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229848AbjDFJlq (ORCPT + 99 others); Thu, 6 Apr 2023 05:41:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229614AbjDFJlo (ORCPT ); Thu, 6 Apr 2023 05:41:44 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2126.outbound.protection.outlook.com [40.107.255.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 129CF6581 for ; Thu, 6 Apr 2023 02:41:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dcCy3b3rxW+3PvLOo2NMBLCgVCzclOgkOKvtWABa5GsJEH20nu580A72xF3LEwqF1IZNhBbKKRg7CmCHIScMszkE9wt0EVZt+6sksUIAxJEAas3jnYB4M3kJHXHNT48Zx7v+uxwxzLaI/itM5LchBwSH2islpoDMngJziWSfHrQa5lGKDSQKliPsZSgFNF6dls2txc8Qd0HHAIoU1E726G1CsBYA+TFHyU899ooR1x6vORKuh7m0sa4+BjVJA3Yq2y7JPiwmgppNcQH51dPa5G8IlcxYyWOu3dCrR3jTyVOI/1XyIHkSwLpjMzN66slx/PXyEQID0ScLTajd1DfMYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=qg/FIXGbQfn1wiiz+PdQuOA0m8F8JP0zGij2BbYWW00=; b=PSOQGc6+gn7aM4scFuFeus2ixbOjgDdPWTfIbsTImNlpBK2QYGssdIkgslMjqLJVoxEQEjMo+QGx9Q0NHO9FpdJiS8VuG/zhly4cCEBTZqRPqH0KCr422yr3lzRK3rwgSUrpc/8ABL1M05KI+dWTD6kXub9hlA0sQt+GubHMZ+tnJGRjeznNHqPzuo2nBxlcGJCupJ2y1QCnNQxxMKMl/RLeq/Vp2nMw+mItxU5hGJ3ItW0SDpFrQY3lsC5gDqedIQq2KIahQekwhhIeX0SOt4wUSLVIcdeAuHpysXPYa/kEpF3AEa8G6Aog2Y8mqCvVW9GjbzR5lXleElzBtj9hZA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vivo.com; dmarc=pass action=none header.from=vivo.com; dkim=pass header.d=vivo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qg/FIXGbQfn1wiiz+PdQuOA0m8F8JP0zGij2BbYWW00=; b=fFeMxTVj3yV9g/uhocytVlyuYZyCGGGQO5qW3GYqr3XHRTAmCLmz5d5MyEGqXRsAhvXMASMLwLFzMbTDlQxXeuzpy9HzLeQbLHNsvvs7lWe70mSMh1KflDEQ5nOAAXyaClEEfhRgVXGU1KoZ/P1uo6nAKWzPCf2spsTGVIAdS69oMe3cZUoeWXiEwKY+QXpvwspd0Gu+ZOUfxhnDKqkZSdUtysZHMCsCc2i5ws+NlB9FmK0Zw9bnEvTK4jGArGAIBf2W+kCJ+h5+HVzMMfF50BwvzVF0LiGjakHncRv1jyOcNagLbG4jKtqTECM34rrnI9alcb6ZrAASoxGSK5AA8w== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from TYZPR06MB5275.apcprd06.prod.outlook.com (2603:1096:400:1f5::6) by SI2PR06MB4610.apcprd06.prod.outlook.com (2603:1096:4:143::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6254.35; Thu, 6 Apr 2023 09:41:36 +0000 Received: from TYZPR06MB5275.apcprd06.prod.outlook.com ([fe80::16db:8a6e:6861:4bb]) by TYZPR06MB5275.apcprd06.prod.outlook.com ([fe80::16db:8a6e:6861:4bb%5]) with mapi id 15.20.6277.031; Thu, 6 Apr 2023 09:41:36 +0000 From: Yangtao Li To: hsiangkao@linux.alibaba.com Cc: chao@kernel.org, frank.li@vivo.com, huyue2@coolpad.com, jefflexu@linux.alibaba.com, linux-erofs@lists.ozlabs.org, linux-kernel@vger.kernel.org, xiang@kernel.org Subject: Re: [PATCH 2/2] erofs: remove unnecessary kobject_del() Date: Thu, 6 Apr 2023 17:41:28 +0800 Message-Id: <20230406094128.36587-1-frank.li@vivo.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <028a1b56-72c9-75f6-fb68-1dc5181bf2e8@linux.alibaba.com> References: <028a1b56-72c9-75f6-fb68-1dc5181bf2e8@linux.alibaba.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI2PR02CA0029.apcprd02.prod.outlook.com (2603:1096:4:195::6) To TYZPR06MB5275.apcprd06.prod.outlook.com (2603:1096:400:1f5::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR06MB5275:EE_|SI2PR06MB4610:EE_ X-MS-Office365-Filtering-Correlation-Id: 0df73d2e-f733-4f1f-4243-08db36831d33 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: slVYN17YPKyv4Js4kTktrlKO6oqBkeYKT28+iee1EbA4lhGniMtfWOX/kxPlcqR9A5Qlq1nPrneLCj7CbKi4ueYeJnOjquBgk0cukcCG1xg4FKrnNlfrOtlF9X2Ue2E1XpIQ3Fu9c+Sc+LNYbV3JwvNbIDPHe0VpBCkXSr3XAx8qOZzfveBS4krk+4iLSIH7uvJJ2OYbUgjUqIKZY8lMOwBZzgNCBob74TLAMSXSTC45SB7EQIGNVBXb/UXJQxcuSy9JfNMnrW8gi4ilvak70d4un/aD/GZfbHLbhocoWnlNfWQOwioeiAh2nKNa07pqa1BoYo2A5u0Kzq47Ghd6wZPUt5HMDeSVT9mEih/qqNG8m0YiwsfHESHPHirIyyIVH2YE5PxCOEj4VtcvGw37L4Dh5gUWnPJ4gkYb9bKZ2p9arumt1QZWJw2GrWEeYCTZAAI2rAUmmCrG5PUiHgtjXAe5zhqz9QZwA9WYXxxgbCzybxq1/oH+vQFJ4Am6mVPC9p+NNXiKCttvAafzH2EqEQCskoWgZmuXJ67TMmUqGJAIVspMP/NmE3Aph6dzwuNheM+ODDNGwydjDNJ4GSm7z2/2fvQBOozynAoNRUq1Ha8= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYZPR06MB5275.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(396003)(366004)(346002)(376002)(136003)(39860400002)(451199021)(4326008)(36756003)(8676002)(316002)(66476007)(966005)(6916009)(6486002)(66556008)(66946007)(41300700001)(478600001)(6666004)(52116002)(8936002)(4744005)(2906002)(86362001)(5660300002)(2616005)(38350700002)(186003)(26005)(6506007)(1076003)(38100700002)(6512007);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?tgAa8Q7ZfribeyhC851VwSSO3umGNschdd3ceULEKdcRgy4K2k6/vUcuCOg1?= =?us-ascii?Q?WW0jAAdiS2Vnyb+j0uPNmUFBVen8zqGY9GJ8EYsXogrGVUvj1LSla6kIJ0cS?= =?us-ascii?Q?sPyGFyqRzmUzh2HsPyEXtCqf331qGBifBi2+aGaszvwdVXklie0iaB+EI7rr?= =?us-ascii?Q?5mm0OXsQ4cAVqtmHGuN/cdMljnyCDvxNcWLs5DrUB59JRmMYQ/8vDzllxqGt?= =?us-ascii?Q?K25q7Kp9GNsbs+QJoY1CUcLa4wJZMSa3GkY9C1/AhEKHv7aAB4BfgmJRirzy?= =?us-ascii?Q?mYDTh+5eKJ7TsvDYCk661PVX48Z65AaTPbgmFDlWlgnR9vpKhglEIpPTMs/w?= =?us-ascii?Q?hrR5S8rSA6aBfXNWacy2++ez5RPaSskZ8VVepJk73OChnuGJth/ao78aYlwD?= =?us-ascii?Q?f7SE1RRYBAK7DRz+xbLIiS2/z8PW9O8YHZCMuFsMNOAtbawjMzJpEMAx1eb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RspVT3xr0gCE95gbRFIWc?= =?us-ascii?Q?X1WNhcBh2zBzaRNnmV4f++0xiCRs4v1z7n0qPfVDtmkTQILMLKAGqynTyx9Z?= =?us-ascii?Q?NVIAAz7557aS7oHau/3qXwqhFjiM7XfwPoxzD9D0KfOXcLNzeb9rGDkZQ+Vl?= =?us-ascii?Q?EFivXLoj3D5/3yCOVknwHzhEMkNIHRYrsSquozjdQK76OuxgmQ9ZjI4RnuCT?= =?us-ascii?Q?kI/eItVMMZQZYX6pEZ0riq7HQsfij6tEE/antH1p?= X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0df73d2e-f733-4f1f-4243-08db36831d33 X-MS-Exchange-CrossTenant-AuthSource: TYZPR06MB5275.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Apr 2023 09:41:36.4241 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 923e42dc-48d5-4cbe-b582-1a797a6412ed X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: sV1zCuIxQK7O1WqrEGP4Ayko/Put4UMd04Mc1c39sEXtAu4ouUSXnIX9jzZSjw3IQmWegWjOE2zNJKp/Lb1hkQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SI2PR06MB4610 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,SPF_PASS autolearn=unavailable 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 HI Gao Xiang, > Would you mind taking a look at > commit a942da24abc5 ("fs: erofs: add sanity check for kobject in erofs_unregister_sysfs") > > , which could be "git-blame"ed (I'd suggest looking into these > blame first), and the related discussion was: > > https://lore.kernel.org/r/CAD-N9QXNx=p3-QoWzk6pCznF32CZy8kM3vvo8mamfZZ9CpUKdw@mail.gmail.com > https://lore.kernel.org/r/20220315075152.63789-1-dzm91@hust.edu.cn > TL;DR: I guess it could be fixed as below if kobject_del() could > : be killed safely: > > if (sbi->s_kobj.state_in_sysfs) { > kobject_put(&sbi->s_kobj); > wait_for_completion(&sbi->s_kobj_unregister); > } Thanks for your review and detailed explanation. MBR, Yangtao