Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp9061102rwd; Wed, 21 Jun 2023 02:26:17 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4TGVHbSneClO0teJaUYXtK7BRAL/8nxSEMXefhWbO1jnxKphP6PudfS7Cl8nYLR0Fst0zD X-Received: by 2002:a05:6a20:7d9f:b0:11f:c6d5:860 with SMTP id v31-20020a056a207d9f00b0011fc6d50860mr10574573pzj.54.1687339576953; Wed, 21 Jun 2023 02:26:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687339576; cv=none; d=google.com; s=arc-20160816; b=QLuyDsdlMNjLP9KuHSFUCB4T/ME68W1XzVXr97gjI3NrrauC2lGcYiUOsQBc9D0y+Q YlEJEDfedUAqR26VS2prCdPAqhqCAb0Ze7TG0FUOgvn8WLA7d7SCFvn9hnnwl7oMGr6I 05/i3IblttzZzXwxiN5h24U5LWr7z37/gbj8tJXdai9/QjtBOuQXgnfiONzJGxmzIhxV v0ZLg/i+l4r1O6b+3QM/wmHZCX6BJvyjOxTCPCBZdRalx4ijoVnCBZ7/nuplFk9ux0Us ucrbV+nE809txOy345vcXOOY5Ga8CMvmNOjyVq7a1WTq5RIUHlPA87tDkppS+2UN6ZFe Aa5Q== 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=7ho2kzNiHXbq8n/iMP4+2/7MhxljR1oYSsEqk4ggBR8=; b=s+RUAa7K1PxIN6XonLhgIJ3UbmGHKLBooM6dUY/+WcoSn0AV0wfPz5/KNv/od00mrv C3U3ZaoNDtMXbDK8RO3v8azcyYuKpF3P2MrSvH947J+CqPYAFmpy7tiN5Mf48C9pSg3v kVFes4K4EViV/7s5P9EGfbfkDf3Fg4Vh0YPlWi+j3mTwoRisXNQCjzCSLEP9/iUQIpnI Vwjs1VwdrHYCj4dNhDOw1+JMh27vd1RcAzE/f2WJABqS8ZMhMkYL4MFtHBgwVTKs7OyU QnewquqaVIOEOUhO0tCdPshDhDlkxQM09lqsDnA9YG8D5/BK8QnyUNpTEPoCu1jaI+7s gyWg== 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 s24-20020a639258000000b0054fe295d487si3752333pgn.434.2023.06.21.02.26.03; Wed, 21 Jun 2023 02:26:16 -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 S231271AbjFUJWb (ORCPT + 99 others); Wed, 21 Jun 2023 05:22:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229783AbjFUJW1 (ORCPT ); Wed, 21 Jun 2023 05:22:27 -0400 Received: from dggsgout11.his.huawei.com (unknown [45.249.212.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D95410F0; Wed, 21 Jun 2023 02:22:26 -0700 (PDT) Received: from mail02.huawei.com (unknown [172.30.67.143]) by dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4QmJ1T4pN4z4f3n5p; Wed, 21 Jun 2023 17:22:21 +0800 (CST) Received: from huaweicloud.com (unknown [10.175.104.67]) by APP4 (Coremail) with SMTP id gCh0CgCHLaFMwZJk+OrGMA--.39130S4; Wed, 21 Jun 2023 17:22:22 +0800 (CST) From: linan666@huaweicloud.com To: axboe@kernel.dk, linan122@huawei.com, dan.j.williams@intel.com, vishal.l.verma@intel.com Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, yukuai3@huawei.com, yi.zhang@huawei.com, houtao1@huawei.com, yangerkun@huawei.com Subject: [PATCH v3 0/4] block/badblocks: fix badblocks setting error Date: Thu, 22 Jun 2023 01:20:48 +0800 Message-Id: <20230621172052.1499919-1-linan666@huaweicloud.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: gCh0CgCHLaFMwZJk+OrGMA--.39130S4 X-Coremail-Antispam: 1UD129KBjvdXoW7Jw1UAr15JFy3urW7WFykXwb_yoWfCrX_ua y0yFy5Grn5XFW5Aay3tF1UJrWIyF4UCr1jkFyUtrsYqry7tF4Utws5JrWjqrnxWF47Gwsx Zr95XrWfXw1IgjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbh8YFVCjjxCrM7AC8VAFwI0_Gr0_Xr1l1xkIjI8I6I8E6xAIw20E Y4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l87I20VAvwVAaII0Ic2I_JFv_Gryl8c AvFVAK0II2c7xJM28CjxkF64kEwVA0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVWDJVCq 3wA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxVW8Jr0_Cr1UM28EF7xvwVC2z280aVAFwI0_Gc CE3s1l84ACjcxK6I8E87Iv6xkF7I0E14v26rxl6s0DM2vYz4IE04k24VAvwVAKI4IrM2AI xVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20x vE14v26r1j6r18McIj6I8E87Iv67AKxVWUJVW8JwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xv r2IYc2Ij64vIr41lFIxGxcIEc7CjxVA2Y2ka0xkIwI1lw4CEc2x0rVAKj4xxMxAIw28Icx kI7VAKI48JMxC20s026xCaFVCjc4AY6r1j6r4UMI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2Iq xVCjr7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUtVW8ZwCIc40Y0x0EwIxGrwCI42 IY6xIIjxv20xvE14v26r1j6r1xMIIF0xvE2Ix0cI8IcVCY1x0267AKxVWUJVW8JwCI42IY 6xAIw20EY4v20xvaj40_WFyUJVCq3wCI42IY6I8E87Iv67AKxVWUJVW8JwCI42IY6I8E87 Iv6xkF7I0E14v26r4j6r4UJbIYCTnIWIevJa73UjIFyTuYvjxUsnYwUUUUU X-CM-SenderInfo: polqt0awwwqx5xdzvxpfor3voofrz/ X-CFilter-Loop: Reflected X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_00,DATE_IN_FUTURE_06_12, KHOP_HELO_FCRDNS,SPF_HELO_NONE,SPF_NONE,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 From: Li Nan This patch series fixes some simple bugs of setting badblocks and optimizing struct badblocks. Coly Li has been trying to refactor badblocks in patch series "badblocks improvement for multiple bad block ranges", but the workload is significant. Before that, I will fix some easily triggered issues and optimize some code that does not conflict with Coly's changes. Changes in v3: - delete patchs with significant changes. Li Nan (4): block/badblocks: change some members of badblocks to bool block/badblocks: only set bb->changed/unacked_exist when badblocks changes block/badblocks: fix badblocks loss when badblocks combine block/badblocks: fix the bug of reverse order block/badblocks.c | 38 ++++++++++++++++++++++---------------- include/linux/badblocks.h | 10 +++++----- 2 files changed, 27 insertions(+), 21 deletions(-) -- 2.39.2