Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp77302rwr; Wed, 19 Apr 2023 03:45:58 -0700 (PDT) X-Google-Smtp-Source: AKy350a71CXja7iAYBF8HZ2HWMmFZl7D7o7WSGmdocLOJCWyTKNGo24g+2IpKpt1Bjj8OqWLSS8j X-Received: by 2002:a17:902:e812:b0:1a3:d5af:9b6f with SMTP id u18-20020a170902e81200b001a3d5af9b6fmr5841669plg.19.1681901158097; Wed, 19 Apr 2023 03:45:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681901158; cv=none; d=google.com; s=arc-20160816; b=UUHpOZsNfp6TfQO7RMEwPzigfRymbJsb3ZVXDfx6fIxBfjq9UzXQWDdJnbyXD2t246 t8di4ZpwEmaf27FLTivHr+auWbKlnyjV3S/43H3xogVQO2ZwvSHfwHkUVFTjuH+On5AE NrUllN2KqDRmBjcPjvbgY+2FfdYp2DVxpnQTBFPNIj4V2oSyg1RZSWytmru+sdeJlAWu FHpNOq+hK/8PtS2qzn95DZJKe07kzkXSWXUcbFDczH7vP/308wmE2u5Ghwc/L0Tio+ey V2jmS5BhVZ3LawmUF5PNsz0c+QCeIUY8ddNO5c3gsYHfR1/ZUbAY1usmHZjs3P3Hx4yh Z3Wg== 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=8qfmxrU7rqgnnhieg7x5c1b8MRuikfwddv02sfKrFJY=; b=h3bAnLZsy8bda29uhSQH78p7RwvkqY1RRyt+Lh5n75jODiIjDi8FvVXuCpujS66hTc Q2vh9HxctTpLcChwFc0vJNjI8yA7nRKLNzU5tZMUIQL5dWvIdWVvIGIc1VXYXWiNiOew S1GlNbPsSbqWRDI7pGx9JmHm/VMOEXRsuB1EPea0VJudu1QC4hYRxnMQCAQ0BrNBuEj3 QrWYMV+VDEQ9KBQjSeunpZkYzWxxEs39K2vjX4hkYsoGFayKHaS2iUgyJ8wQt9/LQZ7E vdHSUWXl4l/jc+jluMssNSpwxZL8iyRfOSbmPCJwyG85UWsk+fsDj9oGZKRppIsC2tvX OS3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=nLgX070c; dkim=neutral (no key) header.i=@suse.de; 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 ji5-20020a170903324500b001a5089fe47fsi15446384plb.326.2023.04.19.03.45.44; Wed, 19 Apr 2023 03:45:58 -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=nLgX070c; dkim=neutral (no key) header.i=@suse.de; 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 S232441AbjDSKmn (ORCPT + 99 others); Wed, 19 Apr 2023 06:42:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232677AbjDSKm3 (ORCPT ); Wed, 19 Apr 2023 06:42:29 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1032118D4; Wed, 19 Apr 2023 03:42:25 -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 B04152198F; Wed, 19 Apr 2023 10:42:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1681900944; 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=8qfmxrU7rqgnnhieg7x5c1b8MRuikfwddv02sfKrFJY=; b=nLgX070cza+RuPu4YZP37+VLVfH6ak/LLTFRb/U1HF6XzHVeH/fW1RwLUU8a/vUEtx0iNT XNL+akAOACz4WakiT2lbQeYw0TzJXfv5b/gyUtRcV9sKI+UYHrNMshYJdmHhJMSbZfSIZA xgeADsGl1K8qpCfPZlS9GKDWq4wCx60= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1681900944; 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=8qfmxrU7rqgnnhieg7x5c1b8MRuikfwddv02sfKrFJY=; b=yl6kT564O47BeIeAbbUCpKJIOf6nSvnKUnH3AjGY0NHAr9fldXgBeIQXbQGRLfO9SwDait fcMkPOs9l6w35EAQ== 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 A115F1390E; Wed, 19 Apr 2023 10:42:24 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 2OBCJ5DFP2TENQAAMHmgww (envelope-from ); Wed, 19 Apr 2023 10:42:24 +0000 Date: Wed, 19 Apr 2023 12:42:24 +0200 From: Daniel Wagner To: Sagi Grimberg Cc: linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, Chaitanya Kulkarni , Shin'ichiro Kawasaki Subject: Re: [PATCH blktests v2 2/2] nvme-rc: Cleanup fc resource before module unloading Message-ID: <3euieyvxpsww5p4m457pzupfipbnbv3atxauh2lrp54gqmqcco@hs7ytoop5osf> References: <20230419084757.24846-1-dwagner@suse.de> <20230419084757.24846-3-dwagner@suse.de> <3ec250a9-54c7-3e0d-2463-f8faf15cdb58@grimberg.me> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3ec250a9-54c7-3e0d-2463-f8faf15cdb58@grimberg.me> 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 On Wed, Apr 19, 2023 at 12:44:42PM +0300, Sagi Grimberg wrote: > > > Before we unload the module we should cleanup the fc resources first, > > basically reorder the shutdown sequence to be in reverse order of the > > setup path. > > If this triggers a bug, then I think it is a good idea to have a > dedicated test that reproduces it if we are changing the default > behavior. Right, though I would like to tackle one problem after the other, first get fc working with the 'correct' order. > > While at it also update the rdma stop_soft_rdma before the module > > unloading for the same reasoning. > > Why? it creates the wrong reverse ordering. > > 1. setup soft-rdma > 2. setup nvme-rdma > > 2. teardown nvme-rdma > 1. teardown soft-rdma > > I don't think we need this change. I mean it is a good test > to have that the rdma device goes away underneath nvme-rdma > but it is good for a dedicated test. I was woried about this setup sequence here: modprobe -q nvme-"${nvme_trtype}" if [[ "${nvme_trtype}" == "rdma" ]]; then start_soft_rdma The module is loaded before start_soft_rdma is started, thus I thought we should do the reverse, first call stop_soft_rdma and the unload the module.