From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C9800CE79CE for ; Wed, 20 Sep 2023 11:28:54 +0000 (UTC) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id E81A03CDED5 for ; Wed, 20 Sep 2023 13:28:52 +0200 (CEST) Received: from in-6.smtp.seeweb.it (in-6.smtp.seeweb.it [217.194.8.6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id 833473C0041 for ; Wed, 20 Sep 2023 13:28:42 +0200 (CEST) Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by in-6.smtp.seeweb.it (Postfix) with ESMTPS id E49B214060A1 for ; Wed, 20 Sep 2023 13:28:41 +0200 (CEST) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 4C98C1FFA5 for ; Wed, 20 Sep 2023 11:28:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1695209321; 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=j069pF/vbaZZMP81ZNhPmtgbiKQHx5sAUEizAJiXi+0=; b=XKqMhZbuUrIG9VnNDUG6AzQ4Lu5PHwNYSlEIAdCfsTJwa2xenIQyq3Wf0NZV2wutRVdoUh lp636fKRH3fzsN8KZUpB2qBUjmc6Kc5GRrhvCDW3FDbFwdMYiaRIFKaqXYM0xvafXLi9HP Nt/aEP3TFImS4yHbqM/jQEq8viU/PTo= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1695209321; 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=j069pF/vbaZZMP81ZNhPmtgbiKQHx5sAUEizAJiXi+0=; b=BT1+eDVYw6FU1lEXOQKZ6COLbSDZ+UzuZDJkWW1htUvJlxnpqCbkB0X8gyqsvyscDc0hCJ uKSVqYv/Y7t0qRDA== Received: from g78 (rpalethorpe.tcp.ovpn1.nue.suse.de [10.163.17.14]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 017992C142; Wed, 20 Sep 2023 11:28:40 +0000 (UTC) References: <20230919114701.15327-1-mdoucha@suse.cz> <20230919114701.15327-3-mdoucha@suse.cz> User-agent: mu4e 1.10.7; emacs 29.1 From: Richard Palethorpe To: Martin Doucha Date: Wed, 20 Sep 2023 12:28:36 +0100 Organization: Linux Private Site In-reply-to: <20230919114701.15327-3-mdoucha@suse.cz> Message-ID: <87bkdxf5i0.fsf@suse.de> MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 1.0.1 at in-6.smtp.seeweb.it X-Virus-Status: Clean Subject: Re: [LTP] [PATCH 2/3] nfs03.sh: Wait for all files to be removed X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: rpalethorpe@suse.de Cc: ltp@lists.linux.it Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-bounces+ltp=archiver.kernel.org@lists.linux.it Sender: "ltp" Reviewed-by: Richard Palethorpe Martin Doucha writes: > A race condition between the two parallel calls of rm_files may cause > NFS unmount to fail and then the NFS client will get confused by remote > filesystem change which leads to strange failures. Make sure both > rm_files calls finish before returning from the main test function. > > Signed-off-by: Martin Doucha > --- > testcases/network/nfs/nfs_stress/nfs03.sh | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/testcases/network/nfs/nfs_stress/nfs03.sh b/testcases/network/nfs/nfs_stress/nfs03.sh > index e5f4de67c..e9ef5fb78 100755 > --- a/testcases/network/nfs/nfs_stress/nfs03.sh > +++ b/testcases/network/nfs/nfs_stress/nfs03.sh > @@ -66,11 +66,13 @@ do_test() > cd ../dir1 > wait $pid1 > rm_files & > + pid3=$! > > tst_res TINFO "cd dir2 & removing files" > cd ../dir2 > wait $pid2 > rm_files > + wait $pid3 > > tst_res TPASS "test done" > } > -- > 2.42.0 -- Thank you, Richard. -- Mailing list info: https://lists.linux.it/listinfo/ltp