Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2928687rdb; Tue, 12 Sep 2023 17:29:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHsOqhUzIzrN6fqW/b5jZTCBobRA48OwvZRw6urFwOIQia9rsn89dfPghstE9AQ8Q5M8EhA X-Received: by 2002:a05:6a20:a10c:b0:13f:9233:58d with SMTP id q12-20020a056a20a10c00b0013f9233058dmr832256pzk.2.1694564992014; Tue, 12 Sep 2023 17:29:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694564991; cv=none; d=google.com; s=arc-20160816; b=ZGgYAy6f6G2eqSYiodXonCNF3zJJDZrs4cM9x4w/vmQ6AE1mJkUQ84uLDABO8+Rn/v kePOYOl2KmX8uA1oC+LkF3EDU6/siRhZ1y0nB8XhWazM9QQpo3+vKOPYiihn5QSn/meT tZ7ViyPQD6NSFSFyb0QUf8k2ghEspGYlBuNt350y1TDSE2hYgT2SQrBwqttVBIaBF5Tn FraeYhluiIRHmdtonUgVBgG2MeSFjRBTZ/S6b6PgBuDjLSeZusJd35Xc8SYzdJDZQTBj Dri15Mja1ScSJM5YbxdpXQFHdWjy6Oyw+3i2Jg9F9tYDZTuJhTRM+4EjiOeJIJ6fUMBs 9Jvg== 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=/iMs+ptgawKOXViIHlc/IyZEiOIVhHG2kbWyDW4Das4=; fh=LDanb/bhA63jy2FlbozZVFksISdIorsHZTTfxjxlB1s=; b=onP9HWh1PU2DlDAdh57m09QIElXcrokswCwhE4XZqJk9SfSbrMVlfcP/rVodV6oKE+ KwlgaXdvrwZbjvcRv2o9fkwbffPai45p6AXQClkyaZoABE87ezRbSD5/0L2OmYiviMAT XrLLxMqMACS+NsP1szPCWzPPVkMvQJLpDinE0WJwDOREE99eo8ZTRT2wYdU9+6rPWUUV XHK3v7SpasOXNGmXqbenuaU4L8rjNLf8icEdj1fsCTeq4pr92P7shJAnh8cwm0yQao4E limscYR5mu29scCcaW90Lqn3dHZA915DCcRqAqBmfyyi35DWjh8DjWCR9wuhmOeLNAnW vAPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=IcAbjPwb; dkim=neutral (no key) header.i=@suse.de header.b=ZRQZheB1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id ct5-20020a056a000f8500b0068a692b67b0si9009774pfb.104.2023.09.12.17.29.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 17:29:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=IcAbjPwb; dkim=neutral (no key) header.i=@suse.de header.b=ZRQZheB1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 2098A813CDAA; Mon, 11 Sep 2023 23:38:06 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.8 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230132AbjILGiD (ORCPT + 99 others); Tue, 12 Sep 2023 02:38:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230107AbjILGiB (ORCPT ); Tue, 12 Sep 2023 02:38:01 -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 E2D1BE77 for ; Mon, 11 Sep 2023 23:37:57 -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 4C476216DC; Tue, 12 Sep 2023 06:37:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1694500676; 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=/iMs+ptgawKOXViIHlc/IyZEiOIVhHG2kbWyDW4Das4=; b=IcAbjPwb8dQXTD0bcfZaxuSMIOarHcVwj+AvuFG5XGoZ89zcF1M1yIgt62DdHT284tI0f6 5MlmXf0MSjhVl5ZctSLsU13/ZkJRobup3xpRCDfJfwwLxAN1vZ6iBp6o68SSciv0/chYwu cIaMD/y5cldwQCK50piyfkWHXn7GD3U= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1694500676; 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=/iMs+ptgawKOXViIHlc/IyZEiOIVhHG2kbWyDW4Das4=; b=ZRQZheB1CxZqrQKIreGZ/tG12kTOnyw5Gb124em9HWjoN0m6n4TtCOnxb+T4+fxrqFMvAu mP6ABwZvuVfae/CQ== 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 3E100139DB; Tue, 12 Sep 2023 06:37:56 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id I+cTD0QHAGWHZQAAMHmgww (envelope-from ); Tue, 12 Sep 2023 06:37:56 +0000 Date: Tue, 12 Sep 2023 08:38:32 +0200 From: Daniel Wagner To: Christoph Hellwig , g@flourine.lan Cc: linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, Hannes Reinecke , Sagi Grimberg , Jason Gunthorpe , James Smart , Chaitanya Kulkarni Subject: Re: [RFC v1 4/4] nvmet-discovery: do not use invalid port Message-ID: References: <20230829091350.16156-1-dwagner@suse.de> <20230829091350.16156-5-dwagner@suse.de> <20230905065032.GC19701@lst.de> 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 11 Sep 2023 23:38:06 -0700 (PDT) > We have 3 association: > > > > assoc 0: systemd/udev triggered 'nvme connect-all' discovery controller > > assoc 1: discovery controller from nvme/005 > > assoc 2: i/o controller from nvme/005 > > Actually, assoc 1 is also a i/o controller for the same hostnqn as assoc > 2. This looks more like it assoc 0 and 1 are both from systemd/udev > trigger. But why the heck is the hostnqn for assoc 1 the same as the > hostnqn we use in blktests? Something is really off here. > > The rest of my analysis is still valid. I figured it out. I still used an older version nvme-cli which didn't apply the hostnqn correctly. We fixed this in the meantime. With the latest git version of nvme-cli the second I/O controller is not setup anymore and the crash is gone. Though we still don't cleanup all resources as the kernel module complains with [41707.083039] nvmet_fc: nvmet_fc_exit_module: targetport list not empty