Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp3350394lqp; Tue, 26 Mar 2024 07:03:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWx8cCoUG2+xMFbuoOHFCV5K2WDCfX/+t+zkBnT0bpq4ldBURdg6F0YLWHU7L2cxIVwUhPjmVXooyY0Dc9Ilw09md/+ybpY0Shiz2LbLg== X-Google-Smtp-Source: AGHT+IGREWQ87sF8sB+x89kV0xLCdTtj87NKM0DF1u1FmznUlsEFSB8Cgiy4ENJVm5uFJECkLRj3 X-Received: by 2002:a17:90a:3ee6:b0:2a0:4f2c:573d with SMTP id k93-20020a17090a3ee600b002a04f2c573dmr2430740pjc.19.1711461793488; Tue, 26 Mar 2024 07:03:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711461793; cv=pass; d=google.com; s=arc-20160816; b=S0hsZwU9eaNlgJ7tRJVIp3k0szT0z7/4PK8ggNBlX9bGoLpS+TbGvOYvq2POZf82vE GUPw8ARn44BVrgrxXsI2TiLdpF6N8SuAe8qQ9vkGfZRxs4stZMK0gj4YZZfwk2r/TG4w ZHEX75VLvPdzfDP3a5QELMBsGcl8c9S8Q99HkeV44gs3B5hhkR7iy2rMXQr78NN2kpGz DP3d38cSVbD+/xjpt0cDQ3RXFx3fzDC+iIz75qjwVyPcFPxlSyv7HZxPxrQfSDBNgL6b B6D2ZosrI4hzpDzpTbx9+mqJm3H94AOnvaEhPAE7LJUiSLNqc82IWMCGOmFy4NRhdutd L1OQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:user-agent:date:message-id:from :references:cc:to:subject; bh=CQPzmrmIC9p3Xew9lnpRqlyPip57uhVVQNN8AMBn96A=; fh=o/u4s+4MOy/tsy2mnySf8TSKRsS0NufbzJ2wfq7ENNM=; b=xqpKbSdt04Gc8Z9S9UeFZO/ExA1d11RoYuZHuYPV2+aYKUmlwsuXqeoRJFv8/bE3fm RYzGSWFwLwAEZ0z2BUdPxVLyrGJmDXVp6pt/jA6MsdDryZ+McvCzO0ReMF9pRJ+XsaEH F+Gyn6y+hzolfYyBN1jHJ4ZVw2SsBL9WNZYwXV0UbUWlKHDos3iY+yno3VqqyecKnLI0 HnsE2mZDUGrRJtlQz43nzJFW9Q8C6FNWa4abNRLEpc35xzCVLHMfIozNC+4m499F2WRz 4sATViFoXSXwwcQlhmZSSeC/tFk/8S0Yb8nxPGolqb74XfIeof07DdCWXZqlsGnieYX0 n+VA==; 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-119112-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-119112-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d4-20020a17090ab30400b0029df8b96a8bsi13677597pjr.4.2024.03.26.07.03.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 07:03:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-119112-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huaweicloud.com); spf=pass (google.com: domain of linux-kernel+bounces-119112-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-119112-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 5D7C72E5A77 for ; Tue, 26 Mar 2024 14:03:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A1D207640B; Tue, 26 Mar 2024 14:01:55 +0000 (UTC) Received: from dggsgout12.his.huawei.com (unknown [45.249.212.56]) (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 30A64762DA; Tue, 26 Mar 2024 14:01:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.56 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711461715; cv=none; b=SQlhDaJ0TzojfzIFsA4lqJRuYY4eTFCcyFsKfFdljyAITamtcgr1/puQD0uagA/TxtOP7pSH/xaE5ozeJMe70ZLYPfsR2GuWvp2qte71avGW6XSPoxtlAjZPzVk23N9p5F+IuIHvXgKq33Ifp+fGRvRwTbMT5k7lB27Hj2bvLBA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711461715; c=relaxed/simple; bh=CQPzmrmIC9p3Xew9lnpRqlyPip57uhVVQNN8AMBn96A=; h=Subject:To:Cc:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=PRlvShRjIiM9G2rr39vdITxlq636bgAjUBn+pIaZbqphSgH59WkNlZD8GoG171ND+bWTefYD4XnoothXDjrK54hvys8k8xEPcvvN4fqY8rcmp2FniRYHXp8URg1HSjTtW8tXRqIWWaUmNulLDjrcHJ5RrIgBi2XIx6yDWhG1U4A= 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.56 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 dggsgout12.his.huawei.com (SkyGuard) with ESMTP id 4V3s112czyz4f3jHt; Tue, 26 Mar 2024 22:01:41 +0800 (CST) Received: from mail02.huawei.com (unknown [10.116.40.112]) by mail.maildlp.com (Postfix) with ESMTP id 8C3C41A0CB1; Tue, 26 Mar 2024 22:01:47 +0800 (CST) Received: from [10.174.176.73] (unknown [10.174.176.73]) by APP1 (Coremail) with SMTP id cCh0CgBHZQ5J1QJmq2uTIA--.18997S3; Tue, 26 Mar 2024 22:01:47 +0800 (CST) Subject: Re: [PATCH 00/11] md: avoid counter operation conflicts To: tada keisuke , "song@kernel.org" Cc: "linux-raid@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "yukuai (C)" References: From: Yu Kuai Message-ID: <140c7f16-4c2a-390a-7021-53d3723626ec@huaweicloud.com> Date: Tue, 26 Mar 2024 22:01:45 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=iso-2022-jp; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-CM-TRANSID:cCh0CgBHZQ5J1QJmq2uTIA--.18997S3 X-Coremail-Antispam: 1UD129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UjIYCTnIWjp_UUU5i7kC6x804xWl14x267AKxVWUJVW8JwAF c2x0x2IEx4CE42xK8VAvwI8IcIk0rVWrJVCq3wAFIxvE14AKwVWUJVWUGwA2ocxC64kIII 0Yj41l84x0c7CEw4AK67xGY2AK021l84ACjcxK6xIIjxv20xvE14v26r4j6ryUM28EF7xv wVC0I7IYx2IY6xkF7I0E14v26r4j6F4UM28EF7xvwVC2z280aVAFwI0_GcCE3s1l84ACjc xK6I8E87Iv6xkF7I0E14v26rxl6s0DM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVAC Y4xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r1j6r18McIj6I8E87Iv67AKxVWUJV W8JwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IY64vIr41lc7I2V7IY0VAS07AlzVAYIcxG 8wCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v26r 1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_JF0_Jw1lIxkGc2Ij 64vIr41lIxAIcVC0I7IYx2IY67AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Jr 0_Gr1lIxAIcVCF04k26cxKx2IYs7xG6rW3Jr0E3s1lIxAIcVC2z280aVAFwI0_Jr0_Gr1l IxAIcVC2z280aVCY1x0267AKxVW8JVW8JrUvcSsGvfC2KfnxnUUI43ZEXa7IU1CPfJUUUU U== X-CM-SenderInfo: 51xn3trlr6x35dzhxuhorxvhhfrp/ Hi, 在 2024/03/26 18:29, tada keisuke 写道: > Currently, active_aligned_reads and nr_pending used as counters are atomic types. > Therefore, when inc/dec in a multi-core results in conflicts. I don't uderstand what's the problem here, what's wrong with atomic types in a multi-core system? Thanks, Kuai