Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1374154rwe; Thu, 1 Sep 2022 18:01:51 -0700 (PDT) X-Google-Smtp-Source: AA6agR4W3YgeSzxTJi7m+hHMjmkp4VezmQh9qQKyO/AVS5o64unExFhxnILScG4vnlmiV3l6I5zM X-Received: by 2002:a05:6402:1290:b0:448:181c:37ec with SMTP id w16-20020a056402129000b00448181c37ecmr23871485edv.191.1662080510773; Thu, 01 Sep 2022 18:01:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662080510; cv=none; d=google.com; s=arc-20160816; b=GNz6qn7PBtHXQIT3Co3YKDhbBpHAkh26IfUfYfgrRPhAMe2ix98W/UcyEtZvhMfV1j /EVwnFmVK+c76RCFl6UvqLNUvGPxdRfGSS8dyCnN9eTP/31v47VUDg7NNb9dvvEB1L+F FdXBP3XnQmnhXxmfLgjOCaTsomeYBcvHn7dzeFy94OH1ZBBZvjz52Fh2N+aEi5aQFj4t rkbFU3pLNqnKIRwT5zZ6UtQLSR+OiD07Vs9cA0lHIarzFH9TWUsNDkmcA9kpmZYkyc64 GDVvU1eRb4M67jEEM24htLLJUIocmOfXLiYEoiRX0NKVwdPtCXzulwLJBieLxiLcXVK/ 5N9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:content-transfer-encoding:in-reply-to :from:references:cc:to:content-language:user-agent:mime-version:date :message-id:dkim-signature; bh=vVnYtZTJIhjbiBT/O5D4BbKrgrt19+JwsWC0KXjleUU=; b=V3qc9p86XAYORUuS7/kBFKMPyj5afNSMyOtslJ6X/RIMdvq6DZV5F86BvOLK6C39oY YclDQS+6zV4/QnmXlP0jOYzVcC0fnE6anyiIWUlkwNfumy2BJM9IaukOi8w6Xv9eqjUz 5dhYNYlpClK7/j2u1n2pir0f7+9p2a3ALt6lJFg/SrYMNEI7Xu/81UdYKRR1lycBoXuy w6vYsiUcpmAY+iD91NifTnUWMwT8bY7wx2V8yjPZQh3KGWooQ3BY31oGBsw21WtJsaH2 HTJ51CWbQ8KxxVfJLubmh2ayy7/o4JgjcpqnZywnYX++gVpT+6Ck4MCcGVHPpBvUrbF5 2EGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@deltatee.com header.s=20200525 header.b=CLXseuYc; 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=deltatee.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v9-20020a056402184900b004469b2d6c24si486823edy.102.2022.09.01.18.01.22; Thu, 01 Sep 2022 18:01:50 -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=@deltatee.com header.s=20200525 header.b=CLXseuYc; 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=deltatee.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234011AbiIBA4V (ORCPT + 99 others); Thu, 1 Sep 2022 20:56:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231357AbiIBA4T (ORCPT ); Thu, 1 Sep 2022 20:56:19 -0400 Received: from ale.deltatee.com (ale.deltatee.com [204.191.154.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49FE55F9B6; Thu, 1 Sep 2022 17:56:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=deltatee.com; s=20200525; h=Subject:In-Reply-To:From:References:Cc:To: MIME-Version:Date:Message-ID:content-disposition; bh=vVnYtZTJIhjbiBT/O5D4BbKrgrt19+JwsWC0KXjleUU=; b=CLXseuYcpgPHWuuGOVPmAi8OPk ltw6b4xvveVazKwxBcwiGM7K895pcyYvDbNuzHTnKxixBnT7uWZe/cZMKsEIv25ZuP0FYY9r5w+iP bC1zFE3zwxCzRaDJAYdEgIquSVPTaC4pB3AKhGL+k/nt//XxMJ039We8/5GMbWO30TfKl4NDrtSG1 lYD9ztMHqYQPkA1Ifa4OtrfquimctWBOw6z3a3msKmSVOV6dwbnNfGOaE/QYZBdoWQBd+hSfHVH8t qCWPQG0uER9doEY9iY7++/IwX/ljUK1AyS2PFfKyrq9PzmAZKi9NZYSw9mhyoCKIabAiUjG2AEVhv Hv/Ivurg==; Received: from s0106a84e3fe8c3f3.cg.shawcable.net ([24.64.144.200] helo=[192.168.0.10]) by ale.deltatee.com with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1oTuyf-00E1It-1U; Thu, 01 Sep 2022 18:56:10 -0600 Message-ID: Date: Thu, 1 Sep 2022 18:56:06 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Content-Language: en-CA To: Guoqing Jiang , Yu Kuai , song@kernel.org Cc: linux-raid@vger.kernel.org, linux-kernel@vger.kernel.org, yukuai3@huawei.com, yi.zhang@huawei.com References: <20220829131502.165356-1-yukuai1@huaweicloud.com> <20220829131502.165356-3-yukuai1@huaweicloud.com> <04128618-962f-fd4e-64a9-09ecf7f83776@deltatee.com> <917c01c1-1e2b-66f9-69f1-ed706b7ffc8f@linux.dev> From: Logan Gunthorpe In-Reply-To: <917c01c1-1e2b-66f9-69f1-ed706b7ffc8f@linux.dev> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 24.64.144.200 X-SA-Exim-Rcpt-To: guoqing.jiang@linux.dev, yukuai1@huaweicloud.com, song@kernel.org, linux-raid@vger.kernel.org, linux-kernel@vger.kernel.org, yukuai3@huawei.com, yi.zhang@huawei.com X-SA-Exim-Mail-From: logang@deltatee.com X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Subject: Re: [PATCH -next 2/3] md/raid10: convert resync_lock to use seqlock X-SA-Exim-Version: 4.2.1 (built Sat, 13 Feb 2021 17:57:42 +0000) X-SA-Exim-Scanned: Yes (on ale.deltatee.com) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2022-09-01 18:49, Guoqing Jiang wrote: > > > On 9/2/22 2:41 AM, Logan Gunthorpe wrote: >> Hi, >> >> On 2022-08-29 07:15, Yu Kuai wrote: >>> From: Yu Kuai >>> >>> Currently, wait_barrier() will hold 'resync_lock' to read >>> 'conf->barrier', >>> and io can't be dispatched until 'barrier' is dropped. >>> >>> Since holding the 'barrier' is not common, convert 'resync_lock' to use >>> seqlock so that holding lock can be avoided in fast path. >>> >>> Signed-off-by: Yu Kuai >> I've found some lockdep issues starting with this patch in md-next while >> running mdadm tests (specifically 00raid10 when run about 10 times in a >> row). >> >> I've seen a couple different lock dep errors. The first seems to be >> reproducible on this patch, then it possibly changes to the second on >> subsequent patches. Not sure exactly. > > That's why I said "try mdadm test suites too to avoid regression." ... You may have to run it multiple times, a single run tends not to catch all errors. I had to loop the noted test 10 times to be sure I hit this every time when I did the simple bisect. And ensure that all the debug options are on when you run it (take a look at the Kernel Hacking section in menuconfig). You won't hit this bug without at least CONFIG_PROVE_LOCKING=y. Logan