Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp1247608rdb; Fri, 22 Dec 2023 22:39:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IFzVG6QraJ6ElUllQIv+ZhE1u9yuNDv8ynDOeuBBbbw6UDoK+BWZKVac0o+oASgtBejABHv X-Received: by 2002:a05:6808:10d0:b0:3b8:b063:adfd with SMTP id s16-20020a05680810d000b003b8b063adfdmr3179563ois.90.1703313593161; Fri, 22 Dec 2023 22:39:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703313593; cv=none; d=google.com; s=arc-20160816; b=n5uYevq4MiEgUDcDHAyT8/jEV3rAOlqDnw6sWudbcMT6u7cto/hc8PBtI9jTHReqDR zSlp/3Ud9KhRf/7RWSKcjQWiDB//Xfj9I7GH+wcqaOzWUbjotIRs1/LnEQxAn9zdfZ/D mZbGWk7ZMdH6TgpqDNaNoUvEerEae7DMP+oSSsLf8bgOnxJlsDnHXMw0QzSNTwJUly+s NU1DVEAH0q5gE4yEcxn/mRuQNAF3GCnsZf73L482fXSIeWz7gSqnrFzkFYRMusDgWNu7 2SS821zTVs+HbOYeUvJMmc00BNzMX3W4Vm/jmZaJuVylczisdxQE+ySy842fOyvW3PgC zsVg== ARC-Message-Signature: i=1; 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=zN1EE8P1I+mVwWkN4yvWhk6cNWUdb8Pk6rjJs6aZXQA=; fh=zkcIwTk9sJN+dFrByvp4IZwwJkxOuOrldZrviqmXhTE=; b=uRvv6hKie3W4+fKaCMkL19fTuWyFLwnnzzXLWHhtsNfvgyVdPASmMaXQPmrsHZc0Fz v7j011eSp/JAG/4ZlNPxTnTBq+2tpkWTAhGA5uoJwAz7A/MH5MLFp8Cac8YdkDULi02L K7oUGhAMyowKRmawfu/Ryx4KZYaea9Rjm+UU2GRM+sm5JZwEwh970xFiWbxEUaLIR6nN 2jSmT3ock0LFiZiNuhZWjoZmQQ78gIs+gkDYQtPXWImHf+9tUHIC3M+Ht5WQjnLBnPmf gRY1OQ7lTpqG3cR1YAse/EfBSVRHm4xkUtuxgKqV6RdJRCEy8blStHtSzBg/KX6BN4kd o0+w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-10319-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10319-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id u11-20020a170903124b00b001d3fc92822bsi4581066plh.214.2023.12.22.22.39.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Dec 2023 22:39:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-10319-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-10319-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10319-linux.lists.archive=gmail.com@vger.kernel.org" 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id C73DE285846 for ; Sat, 23 Dec 2023 06:39:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 670D87484; Sat, 23 Dec 2023 06:39:40 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from dggsgout12.his.huawei.com (dggsgout12.his.huawei.com [45.249.212.56]) (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 4AC4A28F7; Sat, 23 Dec 2023 06:39:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=huaweicloud.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=huaweicloud.com Received: from mail.maildlp.com (unknown [172.19.163.235]) by dggsgout12.his.huawei.com (SkyGuard) with ESMTP id 4SxvfC0bmFz4f3kFV; Sat, 23 Dec 2023 14:39:31 +0800 (CST) Received: from mail02.huawei.com (unknown [10.116.40.112]) by mail.maildlp.com (Postfix) with ESMTP id EBE8B1A09F1; Sat, 23 Dec 2023 14:39:33 +0800 (CST) Received: from huaweicloud.com (unknown [10.175.104.67]) by APP1 (Coremail) with SMTP id cCh0CgCXmhCjgIZlBfyaEQ--.4053S4; Sat, 23 Dec 2023 14:39:33 +0800 (CST) From: linan666@huaweicloud.com To: axboe@kernel.dk, geliang.tang@suse.com, xni@redhat.com, colyli@suse.de Cc: ira.weiny@intel.com, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linan666@huaweicloud.com, yukuai3@huawei.com, yi.zhang@huawei.com, houtao1@huawei.com, yangerkun@huawei.com Subject: [PATCH 0/4] badblocks: bugfix and cleanup of _badblocks_check() Date: Sat, 23 Dec 2023 14:37:24 +0800 Message-Id: <20231223063728.3229446-1-linan666@huaweicloud.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-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-CM-TRANSID:cCh0CgCXmhCjgIZlBfyaEQ--.4053S4 X-Coremail-Antispam: 1UD129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UjIYCTnIWjp_UUUYJ7AC8VAFwI0_Gr0_Xr1l1xkIjI8I6I8E 6xAIw20EY4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM28Cjx kF64kEwVA0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVW7JVWDJwA2z4x0Y4vE2Ix0cI8I cVCY1x0267AKxVWxJVW8Jr1l84ACjcxK6I8E87Iv67AKxVW0oVCq3wA2z4x0Y4vEx4A2js IEc7CjxVAFwI0_GcCE3s1lnxkEFVAIw20F6cxK64vIFxWle2I262IYc4CY6c8Ij28IcVAa Y2xG8wAqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jr0_Jr4lYx0Ex4 A2jsIE14v26r1j6r4UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwACjI8F 5VA0II8E6IAqYI8I648v4I1lFIxGxcIEc7CjxVA2Y2ka0xkIwI1lw4CEc2x0rVAKj4xxMx AIw28IcxkI7VAKI48JMxC20s026xCaFVCjc4AY6r1j6r4UMI8I3I0E5I8CrVAFwI0_Jr0_ Jr4lx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUtVW8ZwCIc40Y0x0EwI xGrwCI42IY6xIIjxv20xvE14v26r1j6r1xMIIF0xvE2Ix0cI8IcVCY1x0267AKxVW8JVWx JwCI42IY6xAIw20EY4v20xvaj40_WFyUJVCq3wCI42IY6I8E87Iv67AKxVWUJVW8JwCI42 IY6I8E87Iv6xkF7I0E14v26r4j6r4UJbIYCTnIWIevJa73UjIFyTuYvjfUYuc_UUUUU X-CM-SenderInfo: polqt0awwwqx5xdzvxpfor3voofrz/ From: Li Nan Li Nan (4): badblocks: goto out if find any unacked badblocks in _badblocks_check() badblocks: optimize _badblocks_check() badblocks: fix slab-out-of-bounds in _badblocks_check() badblocks: clean up prev_badblocks() block/badblocks.c | 48 +++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) -- 2.39.2