Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1280886rwe; Thu, 25 Aug 2022 20:51:39 -0700 (PDT) X-Google-Smtp-Source: AA6agR6yegYfFd4kPKUzayWVeHzGUHfu5vRBDeWKHomM/ypG8YhRRf/rg35ZVGUhEV6OiAXMGcSF X-Received: by 2002:a17:906:8449:b0:73d:d822:3085 with SMTP id e9-20020a170906844900b0073dd8223085mr2824313ejy.270.1661485899506; Thu, 25 Aug 2022 20:51:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661485899; cv=none; d=google.com; s=arc-20160816; b=XivetA9MDbOze+sldvQ8dMAhAL1VTBPEQL+7Qw2JV9/FMwhOHyv9juoE7PG+DSYDrV bg2k6SN0gjSqRhiSE/043fGy5VudFaQSPlZc5bAg2q1jm+Aur5Z+6pMgUltaxZtZE/ZH U6wUWF9XcMYvlFurCmHpW5G4qk5db7eyIBAL+SNOdnnY+d2P1VqKZowNyHvPUDvAOJNF jmU2qfJXtSZ13dUEwK/LVUVc17OD9G5KgS6wp/CrwPeyJWmbNHhaqIK7LupUGNLbSd1e stVzNTbpDDK2VXp9EkO5OXexfouBtSf2ZNGK8MYzX8wz18vak/mOrxhoGUA3rl5m0xr2 90jQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=RCMGwk9zpZozvw2JhqDJY6Fx+pTn32rrmZ1IH7qrX/Y=; b=0Cz3/FULIAZVZqRNFDCwiEluWLVEJvUaSP8ZK1JgvVj7b4bzflLhophAPEie8eJUu2 qCd+82iPiSa+uIiuKxZr6BD1YgudVmzOIdVs15WzxpwlKBp7+GcMClRkLYI1SkIHq0DJ bX90LAM9yGTwQRdmsr8nvDZcJT7ePRrJhzMDPflVQ6QaH8S29G34LiZMhzAB3CVsugpv SGfHsrIAWVvlnCgebul9/TVvSfUaDp9dqCopozavPUgwPn6CeTN7NCvEYbQ+KyWUtmUW jghcXOJWrBDHQo6pYDdVPvGAj0+OX2eHGwVBvdtbjKHHWGHWQQmIR6E6DC+Su7YnyLpH tZOg== ARC-Authentication-Results: i=1; mx.google.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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gb38-20020a170907962600b0072fb108db55si701555ejc.895.2022.08.25.20.51.06; Thu, 25 Aug 2022 20:51:39 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244356AbiHZDUs (ORCPT + 99 others); Thu, 25 Aug 2022 23:20:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244560AbiHZDU2 (ORCPT ); Thu, 25 Aug 2022 23:20:28 -0400 X-Greylist: delayed 638 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Thu, 25 Aug 2022 20:20:25 PDT Received: from oem-W330-H30 (unknown [180.167.10.98]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B461D73939; Thu, 25 Aug 2022 20:20:25 -0700 (PDT) Received: from localhost.localdomain (localhost [127.0.0.1]) by oem-W330-H30 (8.15.2/8.15.2/Debian-8) with ESMTP id 27Q39ULS011217; Fri, 26 Aug 2022 11:09:30 +0800 From: Zhang Jiaming To: song@kernel.org Cc: linux-raid@vger.kernel.org, linux-kernel@vger.kernel.org, liqiong@nfschina.com, renyu@nfschina.com, yuzhe@nfschina.com, Zhang Jiaming Subject: [PATCH v3] md/raid5-cache: Resolve patch confilcts Date: Fri, 26 Aug 2022 11:08:00 +0800 Message-Id: <20220826030800.10583-1-jiaming@nfschina.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20220705022617.12555-1-jiaming@nfschina.com> References: <20220705022617.12555-1-jiaming@nfschina.com> X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,FSL_HELO_NON_FQDN_1, HELO_NO_DOMAIN,HELO_OEM,RDNS_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Resolve conflicts when applying patches. Signed-off-by: Zhang Jiaming --- drivers/md/raid5-cache.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/md/raid5-cache.c b/drivers/md/raid5-cache.c index 058d82e..a4a84a0 100644 --- a/drivers/md/raid5-cache.c +++ b/drivers/md/raid5-cache.c @@ -125,7 +125,7 @@ struct r5l_log { * reclaimed. if it's 0, reclaim spaces * used by io_units which are in * IO_UNIT_STRIPE_END state (eg, reclaim - * dones't wait for specific io_unit + * doesn't wait for specific io_unit * switching to IO_UNIT_STRIPE_END * state) */ wait_queue_head_t iounit_wait; @@ -1326,12 +1326,12 @@ static void r5l_write_super_and_discard_space(struct r5l_log *log, * Discard could zero data, so before discard we must make sure * superblock is updated to new log tail. Updating superblock (either * directly call md_update_sb() or depend on md thread) must hold - * reconfig mutex. On the other hand, raid5_quiesce is called with - * reconfig_mutex hold. The first step of raid5_quiesce() is waiting - * for all IO finish, hence waiting for reclaim thread, while reclaim - * thread is calling this function and waiting for reconfig mutex. So + * reconfig_mutex. On the other hand, raid5_quiesce is called with + * reconfig_mutex held. The first step of raid5_quiesce() is waiting + * for all IO to finish, hence waiting for reclaim thread, while reclaim + * thread is calling this function and waiting for reconfig_mutex. So * there is a deadlock. We workaround this issue with a trylock. - * FIXME: we could miss discard if we can't take reconfig mutex + * FIXME: we could miss discard if we can't take reconfig_mutex */ set_mask_bits(&mddev->sb_flags, 0, BIT(MD_SB_CHANGE_DEVS) | BIT(MD_SB_CHANGE_PENDING)); -- 2.11.0