Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1216514ybv; Thu, 13 Feb 2020 18:21:57 -0800 (PST) X-Google-Smtp-Source: APXvYqzNjZS1MgaiQ/6TpaLNOd/41TTlb9kqLE5jVcJwvM5UI0a0wz+Osu8iAOjXSQf6XRKOuwqD X-Received: by 2002:a9d:6653:: with SMTP id q19mr484076otm.94.1581646917154; Thu, 13 Feb 2020 18:21:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581646917; cv=none; d=google.com; s=arc-20160816; b=MI04ILPgMJScsu6d4lAUNbK4ENbBGgZwgVT1hmtC+v9g69THVoUgO+5vCA7ftUvF07 +nJ7vuoJGTW3F61MantTDFpG7Td33p01600W7/7UQYoo6XJOEidwyqf0sxoQqMs4Mk8A HDSjEjE1gD4sS6epVPTqwIVsJWD80UbGF7UgGHNGaAoTXSP3nZUmYai1grrAa0VgEngG gnI1/oHjvNORBqTnDq7hQob2+w57eH90MUbQDkOIWSekSoqx5avOtsr7R6hn/hew/0HV TLjpGtRcdzApRDlOuoMHGZWG8+MCnV9xQ1aEIqX06f5X0m2q5p1zj/EwvAmJTooJa1JN XMRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=IIOU5/IV6WmeDA1fRWgLKP765N3MzUEHy/NvJLyPNEk=; b=vZmKl0wYHUAPib0i19NEyn4FYrHomzMkz+wMEguqL3aCoKTWT75goZ00k6qmVBSKRs +J4+slDMRDddDCdoFahuDyEzHSjGBRriCAyqltgIddZj4F4Ubm8aqe/STvwNn0R1pkxl M/O8KDLisNKwSTx7vjiETLm2gzpPyOvbQMi272fRsl0QeqJfWrD9YZ+NxrneXc+uAOTd wNMcbIHIHwJLPRPHL8Odv2/RNk6BBIkM6XMIoe2HKGwTnGulkkz8OUDCJv12hXm7tIQj izITUUjQIYCfTd9cvtrG2g1zL5zxC77SdPiA0FGvlzO3qK3SU6MxTFKDPvZs1g9d+jf6 jUzQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e5si1952865oii.32.2020.02.13.18.21.37; Thu, 13 Feb 2020 18:21:57 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728219AbgBNCVR (ORCPT + 99 others); Thu, 13 Feb 2020 21:21:17 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:10172 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728141AbgBNCVR (ORCPT ); Thu, 13 Feb 2020 21:21:17 -0500 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 95AA1FFA0827CC083DCD; Fri, 14 Feb 2020 10:21:14 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.439.0; Fri, 14 Feb 2020 10:21:06 +0800 From: "zhangyi (F)" To: , CC: , Subject: [PATCH] ext4/021: make sure the fdatasync subprocess exits Date: Fri, 14 Feb 2020 10:20:01 +0800 Message-ID: <20200214022001.15563-1-yi.zhang@huawei.com> X-Mailer: git-send-email 2.17.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.124.28] X-CFilter-Loop: Reflected Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Now we just kill fdatasync_work process and wait nothing after the test, so a busy unmount failure may appear if the fdatasync syscall doesn't return in time. umount: /tmp/scratch: target is busy. mount: /tmp/scratch: /dev/sdb already mounted on /tmp/scratch. !!! failed to remount /dev/sdb on /tmp/scratch This patch kill and wait the xfs_io fdatasync subprocess to make sure _check_scratch_fs success. Signed-off-by: zhangyi (F) --- tests/ext4/021 | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/ext4/021 b/tests/ext4/021 index 519737e1..1b4a1ced 100755 --- a/tests/ext4/021 +++ b/tests/ext4/021 @@ -18,6 +18,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 _cleanup() { + $KILLALL_PROG -wq xfs_io cd / rm -f $tmp.* } -- 2.23.0.rc2.8.gff66981f45