Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp509593rwe; Wed, 19 Apr 2023 01:55:06 -0700 (PDT) X-Google-Smtp-Source: AKy350ZKTGPnxCLGNLbrqTpcIS1z5tMviWBs4dEWmBpWWY3WKrEUS8R+ejkzkrTFJ3kO2BVQbXA6 X-Received: by 2002:a05:6a00:acf:b0:63b:e4:554 with SMTP id c15-20020a056a000acf00b0063b00e40554mr3335902pfl.4.1681894505691; Wed, 19 Apr 2023 01:55:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681894505; cv=none; d=google.com; s=arc-20160816; b=zUnX22GQPEmuDibUOIyPJYMtKommUrdTzVs46re7/vWv5DqadAIFGmNLg6bkvyIiX9 qHy1++ucEiRCpoCit31hTp7BIEf78YapC72leT35gc+r8i9LfQANkG7NkzzXesELe4Zg 86VfroeNY9ZhwdEPYaZ2r0fqxaV/52KE6yYb1jIqK/IBSE6OEBB4Q/1p47P0iF4+x5nz csOgRtpTwigpXxRJjxCeLa/By7GD5ApDWH2czPnr0YflfPoV1b2nvOyashdfKufcTEgF KRWkpGWjUtIwQa5cuN0y6b+8anQ1AXutL8aP+FFEXIpBRELWMQnAWRGmUACttNUL8HKD nj1Q== 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 :dkim-signature:dkim-signature; bh=3QiWi7xEJCHdkqRRP7ZvqBGwdGpiUG8vH8kiotRokzk=; b=JFnu7AAIEbCBdtTyxjsih0lPn7aM2visGWLfm4l2p1PQnQ+NaeIP4LRs1NoaoSGdvY I9WxvcUyY7CT8CVhZbuLT6OHd2nsEXqIKJPCZIPU4aduLM+YCdV2bKyAbHLixMlZVM2+ WebXvKMPrriV7JmTkhCDsxSPJzH1s6TiKy2ikInVm4noR35dGuHqny78D6BhlGYyRvGi XWBR316oawYOik1H1q1Eyq7nxZaLpT6AXWrAhlAGk6BHzru3S8BzsSf7zqu7SEQq+hwT UU+qRYS6jKAZQTuBHyPdFZPu54tCJyjk+UjAkjNd3u/6GhH2KP7BM9KlMa0UJIaNJ1pG rZBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=sqVWNsJV; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u195-20020a6279cc000000b0063b7862ed1csi11939582pfc.397.2023.04.19.01.54.50; Wed, 19 Apr 2023 01:55:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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.de header.s=susede2_rsa header.b=sqVWNsJV; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232748AbjDSIsI (ORCPT + 99 others); Wed, 19 Apr 2023 04:48:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231591AbjDSIsE (ORCPT ); Wed, 19 Apr 2023 04:48:04 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D1ADE3C32; Wed, 19 Apr 2023 01:48:03 -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-out2.suse.de (Postfix) with ESMTPS id 84E301FD8B; Wed, 19 Apr 2023 08:48:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1681894082; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3QiWi7xEJCHdkqRRP7ZvqBGwdGpiUG8vH8kiotRokzk=; b=sqVWNsJVUjiYb2VzNHizjNmqeNLQlqmarcx3NSnHE26XF92d6u3XLIvXHIH0ew5yONpe6G YlZIgnisan2J/iH7obtvt0j6SFBsN9wphlq+BvYq9TZzFY+ZU05s+Jb+ckEasTUBI3ZQVZ ZEaQh26OZbecg/F5RPbOy5pFezbfrXw= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1681894082; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3QiWi7xEJCHdkqRRP7ZvqBGwdGpiUG8vH8kiotRokzk=; b=BTEsn7kckP73UTb6IJD67Y1DsdfIczHtODopk79FLqTb4vLl5abEG1zMBlE/PKXXq/l8qh Mq3D2X36dTLJWHAQ== 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 762A91390E; Wed, 19 Apr 2023 08:48:02 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id XB5YHMKqP2S5dQAAMHmgww (envelope-from ); Wed, 19 Apr 2023 08:48:02 +0000 From: Daniel Wagner To: linux-nvme@lists.infradead.org Cc: linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, Chaitanya Kulkarni , Shin'ichiro Kawasaki , Daniel Wagner Subject: [PATCH blktests v2 1/2] nvme-rc: Cleanup fc ports in reverse order Date: Wed, 19 Apr 2023 10:47:56 +0200 Message-Id: <20230419084757.24846-2-dwagner@suse.de> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230419084757.24846-1-dwagner@suse.de> References: <20230419084757.24846-1-dwagner@suse.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,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-kernel@vger.kernel.org We need to free the resources in the opposite order as we allocate them. Signed-off-by: Daniel Wagner --- tests/nvme/rc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/nvme/rc b/tests/nvme/rc index b44239446dcf..ec0cc2d8d8cc 100644 --- a/tests/nvme/rc +++ b/tests/nvme/rc @@ -204,10 +204,10 @@ _cleanup_fcloop() { local remote_wwnn="${3:-$def_remote_wwnn}" local remote_wwpn="${4:-$def_remote_wwpn}" - _nvme_fcloop_del_rport "${local_wwnn}" "${local_wwpn}" \ - "${remote_wwnn}" "${remote_wwpn}" _nvme_fcloop_del_tport "${remote_wwnn}" "${remote_wwpn}" _nvme_fcloop_del_lport "${local_wwnn}" "${local_wwpn}" + _nvme_fcloop_del_rport "${local_wwnn}" "${local_wwpn}" \ + "${remote_wwnn}" "${remote_wwpn}" } _cleanup_nvmet() { -- 2.40.0