Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp581461rwr; Thu, 4 May 2023 07:09:52 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ76Eh8lDaCNCHEDUvONl4P1sq/SS6N/zqFX2B88gcuYFLVvgIPvSN167EAYSmq/cMx4reqV X-Received: by 2002:a17:903:11c4:b0:1a9:8ba4:d0d3 with SMTP id q4-20020a17090311c400b001a98ba4d0d3mr4922578plh.8.1683209391724; Thu, 04 May 2023 07:09:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683209391; cv=none; d=google.com; s=arc-20160816; b=XidpJpVCn1EvPRMA0TW1gsZc/uaGgbwe059S9E2K1cjGvhSlSjHaX39ai219L3FqWX uPwIt8jKW2sd5RxjU9g4PGmK45YKMMO2KvPHeNMwM+lNVXsuVWj2aU+8MIKsAJluxWG0 9mBASliNhAYAcy6DNnXQ+cJhSvD4Ua5yRKPYn0ihn+SunEt7qcx6JilWWm5A9GeArV1v 0SeyzpKlGLU7ij4tNNzXxJTB+5nNHJMu6zDJXt2CSL2mW5EMMq/tAQLXOsuZ2eEDTnUz 4LLPzFa39LzzMNnnWBnaGi1Dm40bofvL7Ov6DtncYCHCzehqet7vSLyrzSKcDLiEVw4s 9hmw== 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:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=cSg8xEc+OUHSL0vqKyRefktIT42eQuoCl5F13vetUbY=; b=cfPV5zM4ChND9bazOnykV+EQKzdvxrQPccIqXQGA1+2qNdJrxf6Z+W3l1n8wWyxISN xksO+S+MWn3n4aledf8x1afhOOKrGuXrqDAMZRX14XaP0uoUMUcRRE8DX6yhVvKzH36y NvRyms83RuzU6BimXmMa7iujlzihDVMVyACJuet/rp466jWBy54Ppwy1sDglLZZuQHKn MG1aaqMllCWpk1eetDYl1qhPhUStR9hoYTnh8xZRBYpAq/n5q6izJLd83dV6gclBLM6Q lHL2Cn4C6G2CuOmAGywQM9pRU26KBxF9ZVERbw0SvZjLPv95rjRFOJnrRicpJ7f03CHw 48YQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=xvl5tOVN; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=F5i6VI6x; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-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 z10-20020a170902834a00b0019ad22c40c7si2123199pln.132.2023.05.04.07.09.33; Thu, 04 May 2023 07:09:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-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; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=xvl5tOVN; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=F5i6VI6x; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230457AbjEDOAt (ORCPT + 99 others); Thu, 4 May 2023 10:00:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230380AbjEDOAs (ORCPT ); Thu, 4 May 2023 10:00:48 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 664AA1982 for ; Thu, 4 May 2023 07:00:46 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 01D4622392; Thu, 4 May 2023 14:00:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1683208845; h=from:from: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=cSg8xEc+OUHSL0vqKyRefktIT42eQuoCl5F13vetUbY=; b=xvl5tOVN9zHrRZgPNmu8Kp9gIAzJCzid0+rIBzG+ryci57CGLsiZ83bDjaiLt8ZJZxsY3G W2F/SAPgb5gh+0TvAkimkvualsKgLUTxqKoyNJtG3kBsWTLwMXNKsSLGcP1iQg9YfBZw/+ 60NbxbrTfWJglgkHsVHcLuUJo5hAxWM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1683208845; h=from:from: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=cSg8xEc+OUHSL0vqKyRefktIT42eQuoCl5F13vetUbY=; b=F5i6VI6x7uYKBFEsKc7pWz3YMPs7wQwAexNTR+6fCvfO/wJYyjKCl2HLKaj0oSSQd10+f0 xTqNpJGUcgUZB2DA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id E0B7613444; Thu, 4 May 2023 14:00:44 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id O8TCNYy6U2TIcQAAMHmgww (envelope-from ); Thu, 04 May 2023 14:00:44 +0000 Date: Thu, 4 May 2023 16:01:47 +0200 From: Cyril Hrubis To: Petr Vorel Cc: ltp@lists.linux.it, NeilBrown , linux-nfs@vger.kernel.org, Jeff Layton Subject: Re: [PATCH v5 5/5] nfs: Run on btrfs, ext4, xfs Message-ID: References: <20230504131414.3826283-1-pvorel@suse.cz> <20230504131414.3826283-6-pvorel@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230504131414.3826283-6-pvorel@suse.cz> X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_SOFTFAIL,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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-nfs@vger.kernel.org Hi! > nfs_get_remote_path() > @@ -210,6 +213,7 @@ nfs_cleanup() > grep -q "$local_dir" /proc/mounts && umount $local_dir > n=$(( n + 1 )) > done > + sleep 2 > > n=0 > for i in $VERSION; do > @@ -219,12 +223,15 @@ nfs_cleanup() > if tst_net_use_netns; then > if test -d $remote_dir; then > exportfs -u *:$remote_dir > + sleep 1 > rm -rf $remote_dir > fi > else > tst_rhost_run -c "test -d $remote_dir && exportfs -u *:$remote_dir" > + sleep 1 > tst_rhost_run -c "test -d $remote_dir && rm -rf $remote_dir" > fi > + > n=$(( n + 1 )) > done Generally I'm not happy about the sleeps in the code, the main problem is that the test still may fail in a case that something was slower than usuall and we decided to proceed after we slept for a pre-defined interval. Ideally these should be replaced with a active waiting, i.e. loop that checks some condition 10 times in a second or so. Hoewever I'm okay with getting this in so that we manage to have these tests in before the release and fixing it later on. -- Cyril Hrubis chrubis@suse.cz