From patchwork Mon May 22 07:25:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li Nan X-Patchwork-Id: 9659 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1272823vqo; Mon, 22 May 2023 00:46:04 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7K4TQG3wpCjgnuMX/0V6yQuYYj9wvnL7JIBMennvnx/AKRyalf0PxbLImRDzYoKkqBmGHh X-Received: by 2002:a05:6a20:7350:b0:101:1e75:78e with SMTP id v16-20020a056a20735000b001011e75078emr11157019pzc.14.1684741563847; Mon, 22 May 2023 00:46:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684741563; cv=none; d=google.com; s=arc-20160816; b=LtJM8+GvHU5n6EKd7FhQ04XHjj+rHQN+R9pvemwqAdmaWy6U6BchpzQZQoBVqH9ppZ pZgaPeHtxgrwki+GphQ5rhjorD08qBPw/fwPGY0ULi048xzv9VqEBEwTZ+zrIj+XePfD gnyBYYbdgwd88w5LgcqKbmKVDtpGGV3yNHoF9mI8TvsxCt8VjX6kjGNOsmr2RUpvvvWr JUAcODfB4MpkXMAGfJ9r2dqvUZ9XWa4kme8VayfxeqB7mouOm/Med4i8M5os8PI5G6+x BaUf1gaNM3PqtMiKKLPMRw+vDioiY/C7LVqdtd5BxaYy5ysXOaHMoTxBmfaPtbDzg58n NZmw== 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=aLMOCcrXDpybseFG+4gjVuYpq/U22MSu0fy7ZOSbd4Q=; b=y6h6PdNR1MC13jJURCeewz4ZBSOGvAUw7zRqKvGP44HLr3xZexibeASUYTudacw6YF w/0xgL9sjYQGdOT+USfgVYRoPVQyDTJKJWHpMXNtD47UldpV1NpN3HMIVSt07wOZvNvg UUaQi0gCebIq2zK3T8AfuyIz5MLicF52yIcFJYrg1lZkPQiB+QAQaJs2uQNCe5ZVlDAH j3HtkmDfYKKhUkhnsglrGSbBtaoc1XizgKT2QD7pr/TAUmpsENw5zzhtbFPXBghsGQuO grmSUm1GQCJNCKQ1Q1hWpQjsICK+dpFSpkeUKKbQZUEPRuGYaEsNpvbgPhLl2XYZcYiC tCxA== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a10-20020a637f0a000000b00513af1fa0b5si4106625pgd.797.2023.05.22.00.45.51; Mon, 22 May 2023 00:46:03 -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 S232577AbjEVH1W (ORCPT + 99 others); Mon, 22 May 2023 03:27:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232421AbjEVH1R (ORCPT ); Mon, 22 May 2023 03:27:17 -0400 Received: from dggsgout11.his.huawei.com (unknown [45.249.212.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E196B9; Mon, 22 May 2023 00:27:10 -0700 (PDT) Received: from mail02.huawei.com (unknown [172.30.67.143]) by dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4QPptK5Xw6z4f3jpl; Mon, 22 May 2023 15:27:05 +0800 (CST) Received: from huaweicloud.com (unknown [10.175.127.227]) by APP2 (Coremail) with SMTP id Syh0CgBH7epJGWtkztVuJw--.34097S4; Mon, 22 May 2023 15:27:06 +0800 (CST) From: linan666@huaweicloud.com To: song@kernel.org, neilb@suse.de, Rob.Becker@riverbed.com Cc: linux-raid@vger.kernel.org, linux-kernel@vger.kernel.org, linan122@huawei.com, yukuai3@huawei.com, yi.zhang@huawei.com, houtao1@huawei.com, yangerkun@huawei.com Subject: [PATCH v4 0/3] md: bugfix of writing raid sysfs Date: Mon, 22 May 2023 15:25:32 +0800 Message-Id: <20230522072535.1523740-1-linan666@huaweicloud.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-CM-TRANSID: Syh0CgBH7epJGWtkztVuJw--.34097S4 X-Coremail-Antispam: 1UD129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UjIYCTnIWjp_UUUYg7kC6x804xWl14x267AKxVW8JVW5JwAF c2x0x2IEx4CE42xK8VAvwI8IcIk0rVWrJVCq3wAFIxvE14AKwVWUJVWUGwA2ocxC64kIII 0Yj41l84x0c7CEw4AK67xGY2AK021l84ACjcxK6xIIjxv20xvE14v26F1j6w1UM28EF7xv wVC0I7IYx2IY6xkF7I0E14v26r4UJVWxJr1l84ACjcxK6I8E87Iv67AKxVW0oVCq3wA2z4 x0Y4vEx4A2jsIEc7CjxVAFwI0_GcCE3s1lnxkEFVAIw20F6cxK64vIFxWle2I262IYc4CY 6c8Ij28IcVAaY2xG8wAqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jr 0_Jr4lYx0Ex4A2jsIE14v26r1j6r4UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0E wIxGrwACI402YVCY1x02628vn2kIc2xKxwAKzVCY07xG64k0F24l42xK82IYc2Ij64vIr4 1l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8GjcxK 67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r1q6r43MIIYrxkI7VAKI48JMIIF0xvE2Ix0cI 8IcVAFwI0_Jr0_JF4lIxAIcVC0I7IYx2IY6xkF7I0E14v26r1j6r4UMIIF0xvE42xK8VAv wI8IcIk0rVWrZr1j6s0DMIIF0xvEx4A2jsIE14v26r1j6r4UMIIF0xvEx4A2jsIEc7CjxV AFwI0_Jr0_GrUvcSsGvfC2KfnxnUUI43ZEXa7IU1kpnJUUUUU== X-CM-SenderInfo: polqt0awwwqx5xdzvxpfor3voofrz/ X-CFilter-Loop: Reflected X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766579569786488829?= X-GMAIL-MSGID: =?utf-8?q?1766579569786488829?= From: Li Nan The patch series fix the bug of writing raid sysfs. Changes in v4: - in patch 1, check overflow in safe_delay_store() directly. - in patch 2, check input number instead of using unsigned int. Li Nan (3): md/raid10: fix overflow of md/safe_mode_delay md/raid10: fix wrong setting of max_corr_read_errors md/raid10: optimize check_decay_read_errors() drivers/md/md.c | 9 ++++++--- drivers/md/raid10.c | 41 ++++++++++++++++++++++++----------------- 2 files changed, 30 insertions(+), 20 deletions(-)