Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp944384lqj; Mon, 3 Jun 2024 06:00:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWBnCEUR6NIXbC0IyNJNAXdXXL8FLAKgD/ZT2tldvVTcL3eUoURA3xMl9TdezSpKQMzeXHTicx37OI1A8diqbhu/KzWY924zM+ARtDZdQ== X-Google-Smtp-Source: AGHT+IF5bYvGcBaX6LzBmDguyxKlwdEmxIzHD56jpv1qfEWOS2Tk6Abc4Yf8KsMPkCaoZTC60GEI X-Received: by 2002:a81:ad46:0:b0:627:e281:6763 with SMTP id 00721157ae682-62c796d6768mr95003197b3.14.1717419648835; Mon, 03 Jun 2024 06:00:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717419648; cv=pass; d=google.com; s=arc-20160816; b=trWS+z+dhP+HHAs5/sTA5N6Zd8HPebPyX6tpHmV627rlJ1m5X+clW78Nl2WdcLxhsi ODLO02+NdJZi01wREOPchf/uJ9URo9qwA6daFnrqSnyhNXMKyZ9qmlMyjDCZh9SpiB62 3EyD9XPn5+/iYuQuESIUS3krK4yTOQiFBqUw/wWlznyYUNxB0oOcGS8oNSIV9d8/Nf87 Muh74LzcBALUhtxC3u/FCr1zJfJBsF6SZBAeK19nEXExqxUmHZbCb8giop7WMs30hs7y xEAVMVrrye3JbB1Md6EEdstNp5tmOVRhHVtxFNgZOsTcd2yk044m71c7B9r0Yct9PrVp Qxtw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=9ZPHqFD4+KyJs8tOYU8x1/7CHbVKLBHZtDK4i21KC1A=; fh=1LhuwRtrwnHwkJ8SSfr9g2yPev2+fxl/FqZerKdeGVc=; b=SS7XFbTNYw7MqRKkVdti3Z7stkTN6Bs8g9A87ARKuR+hPE0Za+liwsXrdeoyQaKnFc u/+vCBtyq6BaAqcEmL8QOq+nloIy17BGGYsJK+a1E0YXJ5bNgdxLh72NDj0BkD2dhFg7 TGfw3a2H4Hyj7oH9MWSrCwbTkdJs+rjxy45+yedygFjxTKB0jn8TsnOVrviGZuDOV2Gg aUmOBo0UNDGCZKmgHHp43sbPVXkrbQciUAhT7Mao5AZ9atKEXBBTxoCPJrBLqH3JlXTq TgwTJUNRAoNMOAL0s2Sbw1CXYUQK1svDyufKDp9/ZvOpMNxSF3y1Z/bi+gMh1vmdnptu 9zBQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-199148-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199148-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 00721157ae682-62c76687bbdsi34500567b3.182.2024.06.03.06.00.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 06:00:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-199148-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-199148-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199148-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 62F4B1C21BD1 for ; Mon, 3 Jun 2024 12:58:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 409D612CD8E; Mon, 3 Jun 2024 12:58:14 +0000 (UTC) Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6115D12C482; Mon, 3 Jun 2024 12:58:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.255 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717419493; cv=none; b=XyWy94pNzxa/tumz23tJpy1itdkZcBryTi8nIzn8d3E9s4QMG0acpreceJfUcuc1TPrCIZ7IFfcUJubAZl2x/tSOBhUmoYBSJ+3StFllMeSC+6DGlWX4PY7ZnbosxTTQtjvHlpCwiiiuVnRcEytUyK4IjyyHV6teQlKV4nBA1No= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717419493; c=relaxed/simple; bh=OU4mVbRF8T7fGhSRohDJTOAtuVkdmbk3kcb/uJg5Lg0=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=jDa2VKU3lKRe8af7P66MxAiznGB0u35a1bNIZ8WzQM7+jivCSmjeylWrGB4hsn30p4QJbJBH3f4UyQYSXsnOTxWQHGBrxiYV614UEehH/j0XcOC88J6ds8oxLVccmc1Cp37dKlyV6V1Sy8wNzMkGDmukWA6JLPi34HCpn/KaODk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.255 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.163.48]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4VtDFN31XCz1S91T; Mon, 3 Jun 2024 20:54:16 +0800 (CST) Received: from kwepemm600009.china.huawei.com (unknown [7.193.23.164]) by mail.maildlp.com (Postfix) with ESMTPS id 5D7D2180060; Mon, 3 Jun 2024 20:58:10 +0800 (CST) Received: from huawei.com (10.175.104.67) by kwepemm600009.china.huawei.com (7.193.23.164) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Mon, 3 Jun 2024 20:58:09 +0800 From: Yu Kuai To: , , , , , , CC: , , , , , , Subject: [PATCH 00/12] md: refacotor and some fixes related to sync_thread Date: Mon, 3 Jun 2024 20:58:03 +0800 Message-ID: <20240603125815.2199072-1-yukuai3@huawei.com> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To kwepemm600009.china.huawei.com (7.193.23.164) Changes from RFC: - fix some typos; - add patch 7 to prevent some mdadm tests failure; - add patch 12 to fix BUG_ON() panic by mdadm test 07revert-grow; Yu Kuai (12): md: rearrange recovery_flags md: add a new enum type sync_action md: add new helpers for sync_action md: factor out helper to start reshape from action_store() md: replace sysfs api sync_action with new helpers md: remove parameter check_seq for stop_sync_thread() md: don't fail action_store() if sync_thread is not registered md: use new helers in md_do_sync() md: replace last_sync_action with new enum type md: factor out helpers for different sync_action in md_do_sync() md: pass in max_sectors for pers->sync_request() md/raid5: avoid BUG_ON() while continue reshape after reassembling drivers/md/dm-raid.c | 2 +- drivers/md/md.c | 437 ++++++++++++++++++++++++++----------------- drivers/md/md.h | 124 +++++++++--- drivers/md/raid1.c | 5 +- drivers/md/raid10.c | 8 +- drivers/md/raid5.c | 23 ++- 6 files changed, 388 insertions(+), 211 deletions(-) -- 2.39.2