Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp509361rwi; Thu, 20 Oct 2022 01:25:40 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6fjKYWe56tFV9pA2S793xE0QSP1m/o5/SQOtEGwPF9EhLBx3aqgRWnCDLcApdF63tynZfN X-Received: by 2002:a17:907:16a6:b0:78e:f140:a9b9 with SMTP id hc38-20020a17090716a600b0078ef140a9b9mr10018214ejc.502.1666254330181; Thu, 20 Oct 2022 01:25:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666254330; cv=none; d=google.com; s=arc-20160816; b=fXWUzuy7c78HAgFR8He89lsLpoNzw7N/dPHM7TEmXaSWapk3VnraFtKCbhxy638WRJ Mo6v2iCwGHOga6IsURfTXBD5hF478TLUcDiaTmwYsApBgGzuYXCWWVy/WJcEDh/TmQXd BBENyuBZYGJirscUCSsXJUvjgHLlXA9YLmKSBzE16JIaBQpv5f5xAeriQsKlijTELl/W bYvzq07lkrvOdCiO4urLI66UcCt5E53XNDvYIvfq/2UkuY4A0+wI6JPt3tGHM9Z18gP9 E4N2GoQYXIn8ppL9E4uCGU30UPj9LJNNq24SAlx0f0QzKP2K8hvkcgFRv80Ke1xADlW2 nhCg== 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:dkim-signature; bh=dGaGQIXl2Gl5lJny6PXuMoarvdfMbol1FduZ4RGQisM=; b=LyneG9tY5CAZ8RJMi9YpoH36tV2fXPB6u6mskUS6rr/VnWmbra5aCxjZA2iXiDfaVC eufxHa/bSKU3HXg2gq8PY9Z7eL+h7g1HcZKH/Zz+t6XaoUmD0e7pBnpMQbIchaC4GM9a HvI59l297iWH4/IBRUX4OCMveQNJEclkMK1KMT7l96HD9F8dGMZd0A6+RH2jw9SfVtmp dajEz2c5CD5EKst54WHsaznCSmZC3o8X8Z8CLXbNBzVXfkGbEQ2fZqvXALEi0WR5btXH GzduOQ79bTUtN6NG2qd0HmiOfQM1KB28G0i8JYstdHqTpDbJdIumWznVnQ+QR/AwKGk7 3Cnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RUrUJY+Z; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m25-20020aa7d359000000b004597aa082ddsi13862382edr.257.2022.10.20.01.25.05; Thu, 20 Oct 2022 01:25:30 -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=@kernel.org header.s=k20201202 header.b=RUrUJY+Z; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230401AbiJTIKK (ORCPT + 99 others); Thu, 20 Oct 2022 04:10:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230410AbiJTIKF (ORCPT ); Thu, 20 Oct 2022 04:10:05 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D5C820985 for ; Thu, 20 Oct 2022 01:10:04 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9422961A01 for ; Thu, 20 Oct 2022 08:10:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 458F4C433D7; Thu, 20 Oct 2022 08:10:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666253403; bh=TZH3HlrUcw85qXpZBg1C/yHHkc3IDLD5ROD1X0bKVM8=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=RUrUJY+ZQID6beKKY8k/RIFOChFc6D1S84jdodkaPggjPAtO3AfUyUWiYQIuE3MEP zaL6Gtg63O0Fe0KWa/SsjRS3BcUlJ5ASCyxCaXQzK4SPlIkG7czgBPbpCJ6bRGDFbu jBQeGqIH5kTj8k8x8lZnbvBFdiCfrXzhkCM6xjdMbHWJ9OrrKuVD1sWKApkksSKoy1 Ov0WKaEGoOssY3kM2nJdPhZ8S9frYiSwASv9nTPhshse4s2gITPwGhvf2yppCScqrM BAm2v3bjBh2Xb+pTHmKQKrFelaDDB8iJePbq3q37+KX2DngBF7IDCeqhV2KvfyBSOG fuT8Z8hw2l0Kg== Message-ID: <0b2d44b0-7a72-2788-b8cc-b5c1ecfbcbae@kernel.org> Date: Thu, 20 Oct 2022 16:09:59 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.3.1 Subject: Re: [PATCH v2] erofs: protect s_inodes with s_inode_list_lock Content-Language: en-US To: Dawei Li , xiang@kernel.org Cc: zhujia.zj@bytedance.com, huyue2@coolpad.com, jefflexu@linux.alibaba.com, linux-erofs@lists.ozlabs.org, linux-kernel@vger.kernel.org References: From: Chao Yu In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 2022/10/17 9:55, Dawei Li wrote: > s_inodes is superblock-specific resource, which should be > protected by sb's specific lock s_inode_list_lock. > > v2: update the locking mechanisim to protect mutual-exclusive access > both for s_inode_list_lock & erofs_fscache_domain_init_cookie(), as the > reviewing comments from Jia Zhu. > > v1: https://lore.kernel.org/all/TYCP286MB23237A9993E0FFCFE5C2BDBECA269@TYCP286MB2323.JPNP286.PROD.OUTLOOK.COM/ > > base-commit: 8436c4a57bd147b0bd2943ab499bb8368981b9e1 > > Signed-off-by: Dawei Li Reviewed-by: Chao Yu Thanks,