Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp228741pxv; Wed, 30 Jun 2021 04:22:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxng9RzKq2/Odb179eo6B3rRIoyxF820i+eiS2VVfBJsPy16XVTsYzVL2K1zcdA+QU31iAG X-Received: by 2002:a6b:3b95:: with SMTP id i143mr7592317ioa.173.1625052130168; Wed, 30 Jun 2021 04:22:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625052130; cv=none; d=google.com; s=arc-20160816; b=oy271QzrPBkZEXpT6PdatBdaQbo8ujcFfmLDYoZfb/oldVqLousho/vETTsrA3v6MI V7iJz7zDFAT8jXoh5X1xnRXeFZtXKVaaeEAaSIuvKbIwUn+bvAJCU3eboCne5iONANJt ulNX8VbXtOZz4orVtmmJr+ee06nghj5Zj0GIhWi1+mWVy8eH0/8tDB2YwXQStgR8YsPX eacZNBq4AEqqpzBUUmQpD02MmNDVkFIb3n50voyUp/MxzdKqXbgDZZ3FwsSu69r4C/zX 9IsO6SqlUg2i+p39XX1Z/2y2A3G5Yk/IRMmwtLncNDx9CKRDXDqlbZMxWYjFKzhxvu1k zZGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:reply-to:message-id:subject:cc:to:from:date :dkim-signature:dkim-signature:dkim-signature:dkim-signature; bh=hcRrArCHTfHDKlREc0v42yvAQqrwOWz0WZkZ5LO8n4s=; b=JgbzTONDAQ0EYfQKc8C+WhD9s3BDqsWKiC7esjqLqDWM/dxNwKRoQTSBxo/k4a69Nu dY6YZAdKo2nVE9DoP3P1L3Qa4zbUamTy2fcdBHnnABHuZVFeIvz7So5VUNBO7BtThyXO 6PB6SSv05obE32P/0UIritj1Pl190/eKzwtFXCfB7s3iHxoaMpLgjKCk+OMaWgQKi2Yt F5x//QNzSyxlOVvhyLpg50sc2+BO2YTx2ebtpp9kbTFVVjA1+EmfWro4j277DKZEUT6x 4hxjSiFnUpo4i/h2SWbI5v5/LNSOjhkGrE1fFegwbaZFukRLXmB87kpFt/7SbhprQiZU 31rQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=S3IgIuyW; dkim=neutral (no key) header.i=@suse.cz header.b=YZseHrTO; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=S3IgIuyW; dkim=neutral (no key) header.i=@suse.cz header.b=YZseHrTO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p1si16646379ios.16.2021.06.30.04.21.57; Wed, 30 Jun 2021 04:22:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=S3IgIuyW; dkim=neutral (no key) header.i=@suse.cz header.b=YZseHrTO; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=S3IgIuyW; dkim=neutral (no key) header.i=@suse.cz header.b=YZseHrTO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234268AbhF3LXv (ORCPT + 99 others); Wed, 30 Jun 2021 07:23:51 -0400 Received: from smtp-out2.suse.de ([195.135.220.29]:34632 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233706AbhF3LXv (ORCPT ); Wed, 30 Jun 2021 07:23:51 -0400 Received: from imap.suse.de (imap-alt.suse-dmz.suse.de [192.168.254.47]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 9B9601FE6D; Wed, 30 Jun 2021 11:21:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1625052081; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=hcRrArCHTfHDKlREc0v42yvAQqrwOWz0WZkZ5LO8n4s=; b=S3IgIuyWDyuX8p2yDrC3P+Zz7yT+dUmn/Q6buRpXFUfisYyCMyfNIJWXEN6ZSsrke1Ochg tC1VjYU8C99xr5NncDqOxxOQSNuAhBjXsVLrlolY0wB641brbwa7KvHEePQ8UWspIWoM5t WKjlPxLok/2NLp39IXq4wdlJxdrTe8M= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1625052081; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=hcRrArCHTfHDKlREc0v42yvAQqrwOWz0WZkZ5LO8n4s=; b=YZseHrTOXyx8NbqFSghQTJlPmC4BLf6geabxgn9iGXUrZRW14LrFuJo+1c2Lhbco0oO7Lp X1cwoETxqbMMOODQ== Received: from imap3-int (imap-alt.suse-dmz.suse.de [192.168.254.47]) by imap.suse.de (Postfix) with ESMTP id 27488118DD; Wed, 30 Jun 2021 11:21:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1625052081; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=hcRrArCHTfHDKlREc0v42yvAQqrwOWz0WZkZ5LO8n4s=; b=S3IgIuyWDyuX8p2yDrC3P+Zz7yT+dUmn/Q6buRpXFUfisYyCMyfNIJWXEN6ZSsrke1Ochg tC1VjYU8C99xr5NncDqOxxOQSNuAhBjXsVLrlolY0wB641brbwa7KvHEePQ8UWspIWoM5t WKjlPxLok/2NLp39IXq4wdlJxdrTe8M= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1625052081; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=hcRrArCHTfHDKlREc0v42yvAQqrwOWz0WZkZ5LO8n4s=; b=YZseHrTOXyx8NbqFSghQTJlPmC4BLf6geabxgn9iGXUrZRW14LrFuJo+1c2Lhbco0oO7Lp X1cwoETxqbMMOODQ== Received: from director2.suse.de ([192.168.254.72]) by imap3-int with ESMTPSA id MyrsBrFT3GCRKQAALh3uQQ (envelope-from ); Wed, 30 Jun 2021 11:21:21 +0000 Date: Wed, 30 Jun 2021 13:21:19 +0200 From: Petr Vorel To: Josef Bacik Cc: Krzysztof Kozlowski , Chris Mason , David Sterba , linux-btrfs@vger.kernel.org, Linux Kernel Mailing List , "kernel-team@lists.ubuntu.com" , "ltp@lists.linux.it" , Qu Wenruo , Filipe Manana Subject: Re: [LTP] [BUG] btrfs potential failure on 32 core LTP test (fallocate05) Message-ID: Reply-To: Petr Vorel References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On 29/06/2021 19:20, Josef Bacik wrote: > > On 6/29/21 1:00 PM, Krzysztof Kozlowski wrote: > >> Dear BTRFS folks, > >> I am hitting a potential regression of btrfs, visible only with > >> fallocate05 test from LTP (Linux Test Project) only on 32+ core Azure > >> instances (x86_64). > >> Tested: > >> v5.8 (Ubuntu with our stable patches): PASS > >> v5.11 (Ubuntu with our stable patches): FAIL > >> v5.13 mainline: FAIL > >> PASS means test passes on all instances > >> FAIL means test passes on other instance types (e.g. 4 or 16 core) but > >> fails on 32 and 64 core instances (did not test higher), > >> e.g.: Standard_F32s_v2, Standard_F64s_v2, Standard_D32s_v3, > >> Standard_E32s_v3 > >> Reproduction steps: > >> git clone https://github.com/linux-test-project/ltp.git > >> cd ltp > >> ./build.sh && make install -j8 > >> cd ../ltp-install > >> sudo ./runltp -f syscalls -s fallocate05 > > This thing keeps trying to test ext2, how do I make it only test btrfs? Thanks, > It tests all available file systems, just wait till it gets to btrfs. I > don't know how to limit it only to one file system. In the future we can add environment variable to specify the only fs to be tested. There is LTP_DEV_FS_TYPE, but that does not work when .all_filesystems flag is enabled. Thus just patch the file: Kind regards, Petr diff --git testcases/kernel/syscalls/fallocate/fallocate05.c testcases/kernel/syscalls/fallocate/fallocate05.c index 55ec1aee4..7f5a3005a 100644 --- testcases/kernel/syscalls/fallocate/fallocate05.c +++ testcases/kernel/syscalls/fallocate/fallocate05.c @@ -149,7 +149,8 @@ static struct tst_test test = { .mount_device = 1, .dev_min_size = 512, .mntpoint = MNTPOINT, - .all_filesystems = 1, + .needs_device = 1, + .dev_fs_type = "btrfs", .setup = setup, .cleanup = cleanup, .test_all = run,