Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3732026imw; Thu, 7 Jul 2022 06:49:05 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ucLCbqNsL8tUarAlQJ6JRaC98jqx79h7hNnZrW4YUVPoIbzD+bKe74656Fp2MakxL7FkWN X-Received: by 2002:a05:6402:3311:b0:43a:8714:d486 with SMTP id e17-20020a056402331100b0043a8714d486mr13461512eda.136.1657201744832; Thu, 07 Jul 2022 06:49:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657201744; cv=none; d=google.com; s=arc-20160816; b=nw93/Qe4iIlBEc9I6Jz9I6cXM+N29MApTbF05vdKajvRxkG9yCJfC6ixlUC3NXPqhs UOrKifBW7rMdZr7H4p9wqW1DN0rPdH9fwbWfxIf6uinih+6v0xIfYRJsJTmEO8tmHrjx V2OF3craID09CAJ/T0anQI/ObxFKIgc9UMb/+tTCm2+OxLhLJZDD0Q4rZ0jtCcxpfoe3 npWQNvAEFRJgKL+PgQzt1idvt1H8MyGyFRlu5C22ATkQT5cs0k2yiKG9MS2xOnKMFAvU 2BKJWntui/xG2Q79iNBBi3LxWvmYUfYgz1iaWTMoaUVuZda4h2RqQO0+1Bvm5TSOj2K4 3U4w== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=0WeH/Z5/LmWSuvV2s5LzgLFfq6CZ5wLc6/F50/TAWgQ=; b=hTf3RaiMsEr8u8UKXVy69iWgj119KoNHFCMPVogS4vev6QsmrSl4HsBRR9fcM6vwuA f3+/bUG3/93uyagEpLEee8yaGQSRq4FTB5LE84KnM7t78PG9C1wjZLmGR4nPdDVglQEh qmoUJdwTg4znlyqIxGaCQHUxLazxxBVNaF65NuJEPEmM/WXo6ii5AvBiKZobI8QRxC6n pdS7sh8BDIABAd3/gYNZYgmnYVgE2RTalhaWxzgq3ctRsXmiHkGa3bKxFjQt184uubFZ wfHHSZsok8RvM92OKKKobRHRRTCJcAxTsudIg3E09stYq8ogyZX9kFNV1wzdZlfZKz7e eiyA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k23-20020aa7d8d7000000b0043a743878adsi665221eds.384.2022.07.07.06.48.35; Thu, 07 Jul 2022 06:49:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-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-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235732AbiGGNqv (ORCPT + 99 others); Thu, 7 Jul 2022 09:46:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39730 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235304AbiGGNqu (ORCPT ); Thu, 7 Jul 2022 09:46:50 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C188D1BEBE; Thu, 7 Jul 2022 06:46:49 -0700 (PDT) Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4LdyMz1PkYzkWnD; Thu, 7 Jul 2022 21:45:19 +0800 (CST) Received: from kwepemm600010.china.huawei.com (7.193.23.86) by dggemv703-chm.china.huawei.com (10.3.19.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Thu, 7 Jul 2022 21:46:47 +0800 Received: from huawei.com (10.175.127.227) by kwepemm600010.china.huawei.com (7.193.23.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Thu, 7 Jul 2022 21:46:47 +0800 From: Sun Ke To: CC: , , Subject: [PATCH 2/2] ext4/058: set 256 blocks in a block group Set 256 blocks in a block group Date: Thu, 7 Jul 2022 21:59:17 +0800 Message-ID: <20220707135917.373342-3-sunke32@huawei.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220707135917.373342-1-sunke32@huawei.com> References: <20220707135917.373342-1-sunke32@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.127.227] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To kwepemm600010.china.huawei.com (7.193.23.86) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, 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-ext4@vger.kernel.org Set 256 blocks in a block group, then inject I/O pressure, it will trigger off kernel BUG in ext4_mb_mark_diskspace_used. Regression test for commit a08f789d2ab5 ext4: fix bug_on ext4_mb_use_inode_pa. Signed-off-by: Sun Ke --- tests/ext4/058 | 37 +++++++++++++++++++++++++++++++++++++ tests/ext4/058.out | 2 ++ 2 files changed, 39 insertions(+) create mode 100755 tests/ext4/058 create mode 100644 tests/ext4/058.out diff --git a/tests/ext4/058 b/tests/ext4/058 new file mode 100755 index 00000000..dc7903b7 --- /dev/null +++ b/tests/ext4/058 @@ -0,0 +1,37 @@ +#! /bin/bash +# SPDX-License-Identifier: GPL-2.0 +# Copyright (c) 2022 HUAWEI. All Rights Reserved. +# +# FS QA Test 058 +# +# Set 256 blocks in a block group, then inject I/O pressure, +# it will trigger off kernel BUG in ext4_mb_mark_diskspace_used +# +# Regression test for commit +# a08f789d2ab5 ext4: fix bug_on ext4_mb_use_inode_pa +# +. ./common/preamble +_begin_fstest auto + +# real QA test starts here + +# Modify as appropriate. +_supported_fs generic +_require_scratch +_require_command "$KILLALL_PROG" killall + +# set 256 blocks in a block group +MKFS_OPTIONS="-g 256" +_scratch_mkfs >>$seqres.full 2>&1 +_scratch_mount + +$FSSTRESS_PROG -d $SCRATCH_MNT -n 1000 -p 1 >> $seqres.full 2>&1 & +sleep 3 +$KILLALL_PROG -q $FSSTRESS_PROG +wait + +echo "Silence is golden" + +# success, all done +status=0 +exit diff --git a/tests/ext4/058.out b/tests/ext4/058.out new file mode 100644 index 00000000..fb5ca60b --- /dev/null +++ b/tests/ext4/058.out @@ -0,0 +1,2 @@ +QA output created by 058 +Silence is golden -- 2.13.6