Received: by 2002:a05:7412:1703:b0:e2:908c:2ebd with SMTP id dm3csp4077904rdb; Wed, 30 Aug 2023 15:05:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFZoys1EhaGnvLC7vDTD6eiWiPE8RxbcCe3dLKMKPK+SN9uV4PPUfxE1PeCsM0Q3J4yk2Ff X-Received: by 2002:aa7:88cf:0:b0:68c:431e:648a with SMTP id k15-20020aa788cf000000b0068c431e648amr3879000pff.29.1693433152476; Wed, 30 Aug 2023 15:05:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693433152; cv=none; d=google.com; s=arc-20160816; b=RpwodKMLbsS8Rsz/pzmXl9JJrp7XwTb/9L5DPj8/S8TAEF7sXOcKPMxV7Oxn5N2Pdh qHoLQopWjiCbvQQQ9PQ0YbmVKUvEaZskv6fWp7/a08lgfPHUetAaxmGVSItdJVJhgcLy QVle2itro+/iQ9034ORwHBERNqFdJXXcU1UvN0vTDBrO/Fs9+gX87bQiM8egqQM2HubJ fmnAKGdBlGZ46UDyhUDEmXvF5yqlxqJVEwwD4UvZUJofXACM0qxH/wW9r/iO9m4gE8D7 klCbuMGNA3jQUsYGs5z7PQ+QPdjaWJmKg1Pzyyyf/g8VY+qLYXqqpWLYw8P2pIZHFnm6 vydw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=DSSCWa+OtgmkJjs86ZRlh0UWM0XIm720Sl7ZbOdlvMk=; fh=6mSgySxwQN8uhK1slt2HTLSKBtKy6DXFm9iGLTePf10=; b=NwKliGvwEfb20c8+Qyy9JiTZCjU02r0ozyhVLrfDCMuzaOJ7ISF+SncDPZjVv4GGKn XvQF7+tIxnR6ReqrQrd6Hu2eve/dKKIaILzPAgWnEKPrLGx465RYGc3pEgb3/d4oVA+e 7HZ1sQ5fmdZVNJzWxdH19RSJ7gYKSebpe2cVEFhb1VBvufcrk2xkU/VMyQmvH+ZWp2Ex qiVQQHdXbFK9ihIYw+IRw+WBJXAfTKKKR2G7ODRxgnbwaSxyulex70Ow2foIQjISC+ar i+DNHvOnDSSLYXLPI3ErWxXPrEu2AURydGTgRgy9Z3ckNP6/yDdj4kmHqzbtS3Bvvq0P Z5AA== 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 cq9-20020a056a00330900b00688535b71a2si107751pfb.67.2023.08.30.15.05.36; Wed, 30 Aug 2023 15:05:52 -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 S241975AbjH3TLC (ORCPT + 99 others); Wed, 30 Aug 2023 15:11:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242770AbjH3Jdj (ORCPT ); Wed, 30 Aug 2023 05:33:39 -0400 Received: from dggsgout11.his.huawei.com (dggsgout11.his.huawei.com [45.249.212.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 55F3DBE; Wed, 30 Aug 2023 02:33:36 -0700 (PDT) Received: from mail02.huawei.com (unknown [172.30.67.143]) by dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4RbJy40PzDz4f3pHY; Wed, 30 Aug 2023 17:33:32 +0800 (CST) Received: from huaweicloud.com (unknown [10.175.104.67]) by APP4 (Coremail) with SMTP id gCh0CgD3hqnrDO9kkRu9Bw--.49032S4; Wed, 30 Aug 2023 17:33:33 +0800 (CST) From: Yu Kuai To: song@kernel.org, xni@redhat.com Cc: linux-raid@vger.kernel.org, linux-kernel@vger.kernel.org, yukuai3@huawei.com, yukuai1@huaweicloud.com, yi.zhang@huawei.com, yangerkun@huawei.com Subject: [PATCH -next 0/2] md: fix potential hang for mddev_suspend() Date: Wed, 30 Aug 2023 17:29:00 +0800 Message-Id: <20230830092902.1236950-1-yukuai1@huaweicloud.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: gCh0CgD3hqnrDO9kkRu9Bw--.49032S4 X-Coremail-Antispam: 1UD129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UjIYCTnIWjp_UUU5E7AC8VAFwI0_Gr0_Xr1l1xkIjI8I6I8E 6xAIw20EY4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM28Cjx kF64kEwVA0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVW5JVW7JwA2z4x0Y4vE2Ix0cI8I cVCY1x0267AKxVW8Jr0_Cr1UM28EF7xvwVC2z280aVAFwI0_GcCE3s1l84ACjcxK6I8E87 Iv6xkF7I0E14v26rxl6s0DM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI64kE 6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r1j6r18McIj6I8E87Iv67AKxVWUJVW8JwAm72 CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41lF7I21c0EjII2zVCS5cI20VAGYxC7 MxAIw28IcxkI7VAKI48JMxC20s026xCaFVCjc4AY6r1j6r4UMI8I3I0E5I8CrVAFwI0_Jr 0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUtVW8ZwCIc40Y0x0E wIxGrwCI42IY6xIIjxv20xvE14v26r1j6r1xMIIF0xvE2Ix0cI8IcVCY1x0267AKxVWUJV W8JwCI42IY6xAIw20EY4v20xvaj40_WFyUJVCq3wCI42IY6I8E87Iv67AKxVWUJVW8JwCI 42IY6I8E87Iv6xkF7I0E14v26r4j6r4UJbIYCTnIWIevJa73UjIFyTuYvjfUoOJ5UUUUU X-CM-SenderInfo: 51xn3trlr6x35dzhxuhorxvhhfrp/ X-CFilter-Loop: Reflected X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE autolearn=ham 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 From: Yu Kuai Yu Kuai (2): md: factor out helpers to grab and put 'active_io' md: fix potential hang for mddev_suspend() drivers/md/md.c | 36 ++++++++++++++++++++++++++++++------ 1 file changed, 30 insertions(+), 6 deletions(-) -- 2.39.2