Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1067850rdh; Mon, 25 Sep 2023 02:07:56 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFiHSqh9myMXiyFBamomy4K4OnXgyUfkhmdYPChiecYGAKCVk3h+awxsDunTF2zdJCMC0oH X-Received: by 2002:a05:6358:98a2:b0:140:f55a:ad41 with SMTP id q34-20020a05635898a200b00140f55aad41mr7768293rwa.22.1695632875812; Mon, 25 Sep 2023 02:07:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695632875; cv=none; d=google.com; s=arc-20160816; b=u2bJs9/hp3XQy/ickjqoUCicRhYdhLfHimHcIgrGEkCUX6NHafMHDykjtFWsrWN1/2 qKjpRCm5NPLUjlntWxzmiX7ZX7TDA+4j/9/myziSQvV5q9Gfy+m6oM+n1fD5XG8+VmEX ZOPiu/CAnDFvRUuDdA+YdGt6zJQIChMsvdXwcs0QjcMhQL/0qAIAbCLjhHWrFNip0nZv /hdFkVmdNyOf2Xcvw4td3BTpy44sDRSHjbKBnw09NqTiH0lcJ2UahacWKMDIHSA7gbAC B7jRnkKlmhF5ZVsjVSBLrBslq+4PEPjLN3omdmZSfRiu4dYBEWairfy3zMRKNE2f5GtW cBkA== 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 :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=X0h2rYk7YgRj1ATqV191ppaOZUASWzUagxO72b63YlM=; fh=MWEPwiVnV3udVwObLIpqZpq25fOD3FJcNK8hZOmBizY=; b=hqyLNybIQ6BMheeb5ak1agV3jbrxmy8Z5sgh8wMcNU+yS1MMUuThszfURjdG3fic7t ZBuKC9GRnyP+PK/oSEgYjboMdtZjCTZbdii0l2d5G6HlJMyWqKE3cK4waqkDsHoiTJsE IRnONMMuJQLCdlpdk2SRBtZuHazxotGaFQgTwrGmr0e9tE7u/8N0YDd1DfnlGWICKXkp vcXXqHfKRhI7P9NMFZBkLq+dMwRw18oaKm+3ov++c93UdC+M7uGj0dgr/OlR38lQsoOh N9pdm0qKwzjYiVDNNYMydVdBVvyetp5v/cLF/RV8wKStGY8unnJWIMGYsPcZX6qgt9Uw tFoA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id l65-20020a639144000000b00578acf1e8a4si9430869pge.573.2023.09.25.02.07.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 02:07:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 9468480D7549; Mon, 25 Sep 2023 01:55:13 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233016AbjIYIzF (ORCPT + 99 others); Mon, 25 Sep 2023 04:55:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233030AbjIYIzC (ORCPT ); Mon, 25 Sep 2023 04:55:02 -0400 Received: from dggsgout11.his.huawei.com (unknown [45.249.212.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F31BE8; Mon, 25 Sep 2023 01:54:55 -0700 (PDT) Received: from mail02.huawei.com (unknown [172.30.67.143]) by dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4RvGsP2PHVz4f3m7G; Mon, 25 Sep 2023 16:54:49 +0800 (CST) Received: from [10.174.176.73] (unknown [10.174.176.73]) by APP4 (Coremail) with SMTP id gCh0CgB3Dt7ZShFlAYZjBQ--.35145S3; Mon, 25 Sep 2023 16:54:51 +0800 (CST) Subject: Re: [PATCH -next 0/2] md: fix potential hang for mddev_suspend() To: Xiao Ni , Song Liu Cc: Yu Kuai , linux-raid@vger.kernel.org, linux-kernel@vger.kernel.org, yi.zhang@huawei.com, yangerkun@huawei.com, "yukuai (C)" References: <20230830092902.1236950-1-yukuai1@huaweicloud.com> From: Yu Kuai Message-ID: Date: Mon, 25 Sep 2023 16:54:49 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-CM-TRANSID: gCh0CgB3Dt7ZShFlAYZjBQ--.35145S3 X-Coremail-Antispam: 1UD129KBjvdXoWrtr45GF4UAFyxAr43uFyxAFb_yoWfJwb_JF 4UCr97Gw1UJ3W0qa4Durn0v3yq9ay5Gr43Ja4Utry2v3s8JrWUJFs5K395Xr13JFW8tFn8 Ar4kZa40yr13WjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUb4kFF20E14v26r4j6ryUM7CY07I20VC2zVCF04k26cxKx2IYs7xG 6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48ve4kI8w A2z4x0Y4vE2Ix0cI8IcVAFwI0_tr0E3s1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI0_Gr1j 6F4UJwA2z4x0Y4vEx4A2jsIE14v26rxl6s0DM28EF7xvwVC2z280aVCY1x0267AKxVW0oV Cq3wAS0I0E0xvYzxvE52x082IY62kv0487Mc02F40EFcxC0VAKzVAqx4xG6I80ewAv7VC0 I7IYx2IY67AKxVWUJVWUGwAv7VC2z280aVAFwI0_Jr0_Gr1lOx8S6xCaFVCjc4AY6r1j6r 4UM4x0Y48IcVAKI48JM4x0x7Aq67IIx4CEVc8vx2IErcIFxwCYjI0SjxkI62AI1cAE67vI Y487MxAIw28IcxkI7VAKI48JMxC20s026xCaFVCjc4AY6r1j6r4UMI8I3I0E5I8CrVAFwI 0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUtVW8ZwCIc40Y 0x0EwIxGrwCI42IY6xIIjxv20xvE14v26r1j6r1xMIIF0xvE2Ix0cI8IcVCY1x0267AKxV WUJVW8JwCI42IY6xAIw20EY4v20xvaj40_WFyUJVCq3wCI42IY6I8E87Iv67AKxVWUJVW8 JwCI42IY6I8E87Iv6xkF7I0E14v26r4j6r4UJbIYCTnIWIevJa73UjIFyTuYvjfUoOJ5UU UUU X-CM-SenderInfo: 51xn3trlr6x35dzhxuhorxvhhfrp/ X-CFilter-Loop: Reflected X-Spam-Status: No, score=-2.2 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Mon, 25 Sep 2023 01:55:13 -0700 (PDT) Hi, 在 2023/09/25 15:58, Xiao Ni 写道: > On Sat, Sep 23, 2023 at 5:33 AM Song Liu wrote: >> >> On Wed, Aug 30, 2023 at 2:33 AM Yu Kuai wrote: >>> >>> From: Yu Kuai >>> >>> Yu Kuai (2): >>> md: factor out helpers to grab and put 'active_io' >>> md: fix potential hang for mddev_suspend() >> >> Applied to md-next. Thanks! >> >> Song >> >>> >>> drivers/md/md.c | 36 ++++++++++++++++++++++++++++++------ >>> 1 file changed, 30 insertions(+), 6 deletions(-) >>> >>> -- >>> 2.39.2 >>> >> > > Hi all > > For the second patch, active_io_release does this job. So it doesn't > need to do this in md_array_exit again. Yes, this is correct, I missed this while reviewing related code. Song, can you revert this patchset for now? Sorry for the trouble. Thanks, Kuai > > Best Regards > Xiao > > . >