Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp83404lqp; Tue, 21 May 2024 19:46:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWywtHkECt7ZkL1PHyTJa4dS7dWWN4qg2UnTXxlwZYQ9Pnh7lbPrtr3+yVUe9aLaTxUvm1HgrUFK2v3zX6HDevv8ns2afvQ5lBrjIVttA== X-Google-Smtp-Source: AGHT+IFBHZ4AzFDvRFsyB2MExHYU4g09ed+f8skLVLRwOYfjM1mdwBO7Bo0bRn/3ns7B3B0BixQf X-Received: by 2002:a50:8e0f:0:b0:572:7b08:d497 with SMTP id 4fb4d7f45d1cf-57832a68d95mr295375a12.17.1716345985313; Tue, 21 May 2024 19:46:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716345985; cv=pass; d=google.com; s=arc-20160816; b=wspjB3TM9Svtj7fdYT9q9nFCAXjW+zBFe56U7+/PTCyYEKNPKsAysu3ng8DLwF2o4v ot3b6GY8PV82q9EW0U+xKkAa1K/LdZBSwuM9mTxzRbMXwXxXvLLy9M5wtSrFNFIU4N1f MiuMV+FR6wGogoF6ZNdzN2o/Y+eN4awkGW5Yvh3gXb27ZjSgY493ZlxrQCBb4YfOYX4l cV5JO6wjY0NPAUepZdEjFxBtn2aShJ4kbtjvEqhtonyaTNmZisoDU+kNOvy8xxW4noQ6 r7s+CRETTg+JQIcmvDz5nD34RUb/6oJLuT0EqhgFFwe7aksREP/HUhOdtuScxfOLfOWH +XTw== 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=p8YOJtfULROJ3ecx8SQ4FykwRsniq1YDx6s4kG4A4SE=; fh=o0NsIs2XrycKW5fH49q9ET+s3zNvWDzpax5MXP1LHKQ=; b=VeafAwmJf3/8pvIzmL4G/oLsbR8Qb85ghLO3AVgy8CNOH5eAxS7ALmL26FLypOwWvx m4vTnXptGmIQkXZlDCVWtF6k3GCMjScO5jEvi3vwF0gGtQK/8E682gYQm6FLTmrMOnCv aSlWCXaYbqbC6nYyS1PQ/TJaWvlG7Rco37itCi1KBf+0JPntJyuxs/ctt8RjfGDCedS/ wrPcyIKmTLvP8/t4egvFAWoM/yRA2YKVkYal79c5dsViGzF81Q2UoFj/0PnS8MU8P/PY KtVYnWqZjYMkVZ+PiRvNoIlTi2g8998FUhI4rqInnWqSy4ZqHzFb6tQV+nGXcUJqxCZm lCrA==; 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-185702-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185702-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5780a3e67e3si2792938a12.680.2024.05.21.19.46.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 19:46:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-185702-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huaweicloud.com); spf=pass (google.com: domain of linux-kernel+bounces-185702-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185702-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 D922A1F2340A for ; Wed, 22 May 2024 02:46:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 19A6B57CB4; Wed, 22 May 2024 02:46:17 +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 335CEC138; Wed, 22 May 2024 02:46:12 +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=1716345976; cv=none; b=B08JPj8DBjZFAE4flrYUW4sLccOqA/bGPy1752Yup+cHriMgJjZCK66Y+ho1mHb9MM3rh0zbK6EAWrPmMskpzKPg/AUf4eLixpNaHComB2dIgvFq3bUzKqXlfzE3QYz6CZu1SX76q0Up4L5mC2a3f5Dj142vlgME4sUEh4GSl8I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716345976; c=relaxed/simple; bh=SERIfTUtjRLtnnTyu2LrMnGylfL7UiRq1W08iv8nLQM=; h=Subject:To:Cc:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=M5/PZiyKoBWAHdIqquvXHbBgb12g8+ajE0YJHPgLRNacxzvF1bev2i8ArvTEyOOkMmqNrqnzdqmchXS9JhHYcs/74PPS2ac5i6RISnNCx1JPgVhhzOCdNEvw4hFN+S/K9FpQ/64hGqkI7CDsT/oCBtdEgRfhpirQEKv1CWA1aYY= 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 4VkbK317gNz4f3m7G; Wed, 22 May 2024 10:45:59 +0800 (CST) Received: from mail02.huawei.com (unknown [10.116.40.112]) by mail.maildlp.com (Postfix) with ESMTP id 9B5F61A0F41; Wed, 22 May 2024 10:46:09 +0800 (CST) Received: from [10.174.176.73] (unknown [10.174.176.73]) by APP1 (Coremail) with SMTP id cCh0CgAX6RFrXE1mMDtTNQ--.18221S3; Wed, 22 May 2024 10:46:05 +0800 (CST) Subject: Re: [PATCH md-6.10 5/9] md: replace sysfs api sync_action with new helpers To: Xiao Ni , Oliver Sang Cc: Yu Kuai , oe-lkp@lists.linux.dev, lkp@intel.com, linux-raid@vger.kernel.org, agk@redhat.com, snitzer@kernel.org, mpatocka@redhat.com, song@kernel.org, dm-devel@lists.linux.dev, linux-kernel@vger.kernel.org, yi.zhang@huawei.com, yangerkun@huawei.com, "yukuai (C)" , Mariusz Tkaczyk References: <202405202204.4e3dc662-oliver.sang@intel.com> From: Yu Kuai Message-ID: Date: Wed, 22 May 2024 10:46:03 +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=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-CM-TRANSID:cCh0CgAX6RFrXE1mMDtTNQ--.18221S3 X-Coremail-Antispam: 1UD129KBjvJXoWxKr15Cr18XF45ZFWkAry3CFg_yoW7Xr45pw 48J3Z8tF4rJ3Z5AFW8Ka10qa4Fqw4fJry5W34DG340yF4qyr1Svr1Syr1akryqkrZ0k3y2 v3yxXr9xWw4jg3DanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUU9214x267AKxVW5JVWrJwAFc2x0x2IEx4CE42xK8VAvwI8IcIk0 rVWrJVCq3wAFIxvE14AKwVWUJVWUGwA2ocxC64kIII0Yj41l84x0c7CEw4AK67xGY2AK02 1l84ACjcxK6xIIjxv20xvE14v26w1j6s0DM28EF7xvwVC0I7IYx2IY6xkF7I0E14v26r4U JVWxJr1l84ACjcxK6I8E87Iv67AKxVW0oVCq3wA2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_Gc CE3s1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E 2Ix0cI8IcVAFwI0_Jr0_Jr4lYx0Ex4A2jsIE14v26r1j6r4UMcvjeVCFs4IE7xkEbVWUJV W8JwACjcxG0xvEwIxGrwACjI8F5VA0II8E6IAqYI8I648v4I1lFIxGxcIEc7CjxVA2Y2ka 0xkIwI1lc7I2V7IY0VAS07AlzVAYIcxG8wCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7x kEbVWUJVW8JwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI8E 67AF67kF1VAFwI0_GFv_WrylIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVWUJVWUCw CI42IY6xIIjxv20xvEc7CjxVAFwI0_Gr0_Cr1lIxAIcVCF04k26cxKx2IYs7xG6rWUJVWr Zr1UMIIF0xvEx4A2jsIE14v26r1j6r4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Gr0_Gr1UYx BIdaVFxhVjvjDU0xZFpf9x0JUQvtAUUUUU= X-CM-SenderInfo: 51xn3trlr6x35dzhxuhorxvhhfrp/ Hi, 在 2024/05/21 11:21, Xiao Ni 写道: > Hi Kuai > > I've tested 07reshape5intr with the latest upstream kernel 15 times > without failure. So it's better to have a try with 07reshape5intr with > your patch set. I just discussed with Xiao on slack, for conclusion here: The test 07reshape5intr will add a new disk to array, then start reshape: mdadm /dev/md0 --add /dev/xxx mdadm --grow /dev/md0 -n 3 However, the grow will fail: mdadm: Failed to initiate reshape! Root cause is that in kernel, action_store() will return -EBUSY if MD_RECOVERY_RUNNING is set: // mdadm add add_bound_rdev set_bit(MD_RECOVERY_NEEDED, &mddev->recovery); // daemon thread md_check_recovery set_bit(MD_RECOVERY_RUNNING, &mddev->recovery); // do nothing // mdadm grow action_store if (test_bit(MD_RECOVERY_RUNNING, &mddev->recovery)) return -EBUSY clear_bit(MD_RECOVERY_RUNNING, &mddev->recovery) This is a long term problem, and we need new synchronization in kernel to make sure the grow won't fail. Thanks, Kuai > > Regards > Xiao > > > > > On Tue, May 21, 2024 at 11:02 AM Oliver Sang wrote: >> >> hi, Yu Kuai, >> >> On Tue, May 21, 2024 at 10:20:54AM +0800, Yu Kuai wrote: >>> Hi, >>> >>> 在 2024/05/20 23:01, kernel test robot 写道: >>>> >>>> >>>> Hello, >>>> >>>> kernel test robot noticed "mdadm-selftests.07reshape5intr.fail" on: >>>> >>>> commit: 18effaab5f57ef44763e537c782f905e06f6c4f5 ("[PATCH md-6.10 5/9] md: replace sysfs api sync_action with new helpers") >>>> url: https://github.com/intel-lab-lkp/linux/commits/Yu-Kuai/md-rearrange-recovery_flage/20240509-093248 >>>> base: https://git.kernel.org/cgit/linux/kernel/git/device-mapper/linux-dm.git for-next >>>> patch link: https://lore.kernel.org/all/20240509011900.2694291-6-yukuai1@huaweicloud.com/ >>>> patch subject: [PATCH md-6.10 5/9] md: replace sysfs api sync_action with new helpers >>>> >>>> in testcase: mdadm-selftests >>>> version: mdadm-selftests-x86_64-5f41845-1_20240412 >>>> with following parameters: >>>> >>>> disk: 1HDD >>>> test_prefix: 07reshape5intr >>>> >>>> >>>> >>>> compiler: gcc-13 >>>> test machine: 8 threads 1 sockets Intel(R) Core(TM) i7-4790T CPU @ 2.70GHz (Haswell) with 16G memory >>>> >>>> (please refer to attached dmesg/kmsg for entire log/backtrace) >>>> >>>> >>>> >>>> >>>> If you fix the issue in a separate patch/commit (i.e. not just a new version of >>>> the same patch/commit), kindly add following tags >>>> | Reported-by: kernel test robot >>>> | Closes: https://lore.kernel.org/oe-lkp/202405202204.4e3dc662-oliver.sang@intel.com >>>> >>>> 2024-05-14 21:36:26 mkdir -p /var/tmp >>>> 2024-05-14 21:36:26 mke2fs -t ext3 -b 4096 -J size=4 -q /dev/sda1 >>>> 2024-05-14 21:36:57 mount -t ext3 /dev/sda1 /var/tmp >>>> sed -e 's/{DEFAULT_METADATA}/1.2/g' \ >>>> -e 's,{MAP_PATH},/run/mdadm/map,g' mdadm.8.in > mdadm.8 >>>> /usr/bin/install -D -m 644 mdadm.8 /usr/share/man/man8/mdadm.8 >>>> /usr/bin/install -D -m 644 mdmon.8 /usr/share/man/man8/mdmon.8 >>>> /usr/bin/install -D -m 644 md.4 /usr/share/man/man4/md.4 >>>> /usr/bin/install -D -m 644 mdadm.conf.5 /usr/share/man/man5/mdadm.conf.5 >>>> /usr/bin/install -D -m 644 udev-md-raid-creating.rules /lib/udev/rules.d/01-md-raid-creating.rules >>>> /usr/bin/install -D -m 644 udev-md-raid-arrays.rules /lib/udev/rules.d/63-md-raid-arrays.rules >>>> /usr/bin/install -D -m 644 udev-md-raid-assembly.rules /lib/udev/rules.d/64-md-raid-assembly.rules >>>> /usr/bin/install -D -m 644 udev-md-clustered-confirm-device.rules /lib/udev/rules.d/69-md-clustered-confirm-device.rules >>>> /usr/bin/install -D -m 755 mdadm /sbin/mdadm >>>> /usr/bin/install -D -m 755 mdmon /sbin/mdmon >>>> Testing on linux-6.9.0-rc2-00012-g18effaab5f57 kernel >>>> /lkp/benchmarks/mdadm-selftests/tests/07reshape5intr... FAILED - see /var/tmp/07reshape5intr.log and /var/tmp/fail07reshape5intr.log for detail >>> [root@fedora mdadm]# ./test --dev=loop --tests=07reshape5intr >>> test: skipping tests for multipath, which is removed in upstream 6.8+ >>> kernels >>> test: skipping tests for linear, which is removed in upstream 6.8+ kernels >>> Testing on linux-6.9.0-rc2-00023-gf092583596a2 kernel >>> /root/mdadm/tests/07reshape5intr... FAILED - see /var/tmp/07reshape5intr.log >>> and /var/tmp/fail07reshape5intr.log for details >>> (KNOWN BROKEN TEST: always fails) >>> >>> So, since this test is marked BROKEN. >>> >>> Please share the whole log, and is it possible to share the two logs? >> >> >> we only captured one log as attached log-18effaab5f. >> also attached parent log FYI. >> >> >>> >>> Thanks, >>> Kuai >>> >>>> >>>> >>>> >>>> The kernel config and materials to reproduce are available at: >>>> https://download.01.org/0day-ci/archive/20240520/202405202204.4e3dc662-oliver.sang@intel.com >>>> >>>> >>>> >>> > > > . >