Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1124730rdh; Mon, 25 Sep 2023 04:12:25 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHssmfLKezusJJIzhFpPEKd/lBvpsSx7qKmIrIXOfCA+Frk759BRQb6cXpGhtMm2TU8h0FB X-Received: by 2002:a17:902:ecd2:b0:1c5:ad14:9095 with SMTP id a18-20020a170902ecd200b001c5ad149095mr5186661plh.64.1695640344883; Mon, 25 Sep 2023 04:12:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695640344; cv=none; d=google.com; s=arc-20160816; b=e+siYd30n/d2TR01rXc5xfxNCtb9+XwoMaHfJZUreOe9Z3dnU37Dg3+RfPioqB8yvP uGs2bG1VdwnK964IY6Jw6D6nBlaizkc6o7gxPRmpVi2IpyUONDPQr6T7HDmiJ3wm+91v KWFgt10XwmYNy7wZHyK+04f4SHsskY3RhJsComTe0X3B649r4dvJV7vzceCHzzIWv9f9 PLQZPIEY5EeiAiguZt1wSdtB4NvHo2/46VnVmnujZ+wyE57VZAevSZytiyM8drzAHkWA C+A8sGxKA5MJiOGb/91bjl+wW593gJzVu8mif8v1wGj5wXLThuPXsN2GQFkyouw8TAyB riMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=L87wzYgBgGwZuiVFHiZUcLCo+dUlchfJ95HVn2+U9YU=; fh=IbM6hA+X3KBdzaihf9mLw27/Brg6OMK4a+mUy9AZZTc=; b=PKhmZKqrACsAhdO03SGusIz+UOCcHUjklEyTkQNaTHi6RXbKu7q2RM9Yiwjpy//vH5 Y/63/xKJw/V6USe+npyIkzuaoDZmac3hkvPhfKx9ftRWsi7qfegS8uWZe7yjBpUr+aad weUjzbsfHTZYeRInP/s0xDII7vz4BlWRHlGgttfvRWw0pYIe2zROGHG+PgLTfXy/I5Ol pqy8mjhfn4kIj+1lQmYPy5M2EqVEDG8fgI74nd3wOGyaV0QzygY7WOUrX6Kz94STMWss 5IlqhpYHRJ/tLeWZcRagMmoDIPgoaMinloYnj6/6DVVRqNR92qifYFTwu4cDkHD1CDFK e1zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=G+2ZeFxw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id p15-20020a170902e74f00b001bbd0358ef7si10833179plf.518.2023.09.25.04.12.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 04:12:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=G+2ZeFxw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 2049F8022582; Mon, 25 Sep 2023 00:59:12 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232524AbjIYH7K (ORCPT + 99 others); Mon, 25 Sep 2023 03:59:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232148AbjIYH7I (ORCPT ); Mon, 25 Sep 2023 03:59:08 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49464EE for ; Mon, 25 Sep 2023 00:58:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1695628696; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=L87wzYgBgGwZuiVFHiZUcLCo+dUlchfJ95HVn2+U9YU=; b=G+2ZeFxw7lqPxTqt3f+bCJr6yxMUk9KFJeYZCRAGUaLD7xwoFchP/BtRQvF9mIj7+H/0Km +XcfTyZrWyS7JuiMsaKtd1Qdt7lZZLJ0KZKz9qrk2p4VKy6F6UCqqR4ffpcDLtPZlkyULe FK4km3hAlJiZMTKkQYp8BktcvuqGHJw= Received: from mail-pj1-f71.google.com (mail-pj1-f71.google.com [209.85.216.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-484-bLBAse31OkuW1NuqB80Heg-1; Mon, 25 Sep 2023 03:58:14 -0400 X-MC-Unique: bLBAse31OkuW1NuqB80Heg-1 Received: by mail-pj1-f71.google.com with SMTP id 98e67ed59e1d1-277576268e9so1446324a91.2 for ; Mon, 25 Sep 2023 00:58:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695628693; x=1696233493; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=L87wzYgBgGwZuiVFHiZUcLCo+dUlchfJ95HVn2+U9YU=; b=rI+3dGWPf9enZaTrD+zG4v7MKK6KHYuTGQVsFg+fbzGCf4AUUyOT4kawGHGSph5jTK YiCo5tX9/rutqOrk4LsDP6mLOziHa7/0DuZOn1mr4TglQ2AnfFkUhCwmVqULPPJFBifP ezYP4am446r+RYRV/L/xTlk8rDZ36rG+Attu6NNsMfCCK4FxYQXCDYBOBYGMPyRHAu63 Z1b7HJlRnucMB67ETlHvxALeRaz6YabxYJui+0MRzFi2DOu4IJrSFRCuR6Hk6UdX4b15 zP7bBp1iOJWn6m/+QStzPEu6IYLfg7DPW5ilyaIdmiqMJwWDnyplB3+nmVGn73gnh+i8 cAkQ== X-Gm-Message-State: AOJu0YwNN8WE8tfU9noR2IudaD4t/QRVl72PlZyqtVADCvhTjB96CwVN ms4h81Kgu5mTTJwDYec5LSZxeVop7mPbDn2ZkF1NTxqzeN6oXgcsBew4vVfkycAL1KFuNT6JGmm phsEQNzgviSXGz3XuC2qIpMRubqFvic5agudwCRDh2L31Nsm8f6Ww1w== X-Received: by 2002:a17:90a:f298:b0:269:6c5:11a7 with SMTP id fs24-20020a17090af29800b0026906c511a7mr3761446pjb.17.1695628693663; Mon, 25 Sep 2023 00:58:13 -0700 (PDT) X-Received: by 2002:a17:90a:f298:b0:269:6c5:11a7 with SMTP id fs24-20020a17090af29800b0026906c511a7mr3761439pjb.17.1695628693390; Mon, 25 Sep 2023 00:58:13 -0700 (PDT) MIME-Version: 1.0 References: <20230830092902.1236950-1-yukuai1@huaweicloud.com> In-Reply-To: From: Xiao Ni Date: Mon, 25 Sep 2023 15:58:02 +0800 Message-ID: Subject: Re: [PATCH -next 0/2] md: fix potential hang for mddev_suspend() To: Song Liu Cc: Yu Kuai , linux-raid@vger.kernel.org, linux-kernel@vger.kernel.org, yukuai3@huawei.com, yi.zhang@huawei.com, yangerkun@huawei.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,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 morse.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 (morse.vger.email [0.0.0.0]); Mon, 25 Sep 2023 00:59:12 -0700 (PDT) On Sat, Sep 23, 2023 at 5:33=E2=80=AFAM Song Liu wrote: > > On Wed, Aug 30, 2023 at 2:33=E2=80=AFAM 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. Best Regards Xiao