Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp8192594rwd; Tue, 20 Jun 2023 11:26:04 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5ZiMnte1r0iXQhNdB+OS9St1KfvtoN+TR+N77QNuruCS+CnOdYtH/KN3aNwFVY6mI2QxAS X-Received: by 2002:a05:6a20:4314:b0:117:3c00:77da with SMTP id h20-20020a056a20431400b001173c0077damr13551266pzk.20.1687285564159; Tue, 20 Jun 2023 11:26:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687285564; cv=none; d=google.com; s=arc-20160816; b=sQSsCAFny7P/noTfRJiggOTIrTZCVJm21qE66sr18axLQ5t8//LFkEBL4YpLs+zexZ 0jTxfaBVhZ8uABB0/kr1gLGF6vIYLqW05UjdQa12B1DdJOVWmJhE9CyFAnSoO+N8r89D MxOzClVePCTYrnFoasjE5Rcyay+NFfHLlDuD/TQgcOTCvZMKK7zRUBgdD0tjRTYqkYcF 6yxjVmGwgaajt3D3NUFr8sEp7fwLhtHHBLm8V8IbHYORzY8zNPDhDS4Oj3CYrHeL6elx MuZ1KZTftpJsAJI5nmw4s7Y0EMzuI1A/FeJQlYGBLOT2cC7Tm4VcZ7tfD5dwAx0qeB48 qpEA== 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=OG2008PZjL0H9Xg+EBwGxKiyxoGstQ6drRqgvSMoZ2U=; b=cUkSh7DJAIOOe2N96+N/GD/NfSe4Qu+DUSp+wG4AsIDrNi6scB3pGxDc43QfwqdS9C mJk/P880nbnuZWLUQI5gkIRYstn7YYjlhPQ39/GDRv9CP8kjqvMHzv9+YsZc08W2EK+b KitmMCqnu0hEWLZ9eZJ/tYVFgnELjkDsgy0/CYykYeeViQlRZ0L++q4hdwpgO9n2gbxA cECZIVvalBY51lrwLXaMd2K4FTRdVxXwJtpk3YLQwaY2sPqmBv78E0O+A3AhuikIR33a lgau6NjoLC44dXA7S1HcdhDERAyvpt7Vzee/zRWKJm3d5PwF9OSyyEHLsXnniJMceKgh VP/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=kbcXvQY3; 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 u80-20020a627953000000b00666ee06402dsi2132463pfc.84.2023.06.20.11.25.38; Tue, 20 Jun 2023 11:26:04 -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=kbcXvQY3; 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 S230103AbjFTRnj (ORCPT + 99 others); Tue, 20 Jun 2023 13:43:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229538AbjFTRnh (ORCPT ); Tue, 20 Jun 2023 13:43:37 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E16FE10F8; Tue, 20 Jun 2023 10:43:36 -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 A1D99218A8; Tue, 20 Jun 2023 17:43:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1687283015; 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=OG2008PZjL0H9Xg+EBwGxKiyxoGstQ6drRqgvSMoZ2U=; b=kbcXvQY3RYkvHnWKVwTn/IOquzAhVGCwkxaHFRltVx4zdu2RSAoWrw2p+EZy11f/MGfN1r 4eLvz6nq62gzJhTaj90TBCRqD64KBe2lz0G0sFyADOOZR5Mf3D+04GJD1n3uS9qHwnrUNv djkQPlcCOkPR51gY4VirFwy6/y4IgJU= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1687283015; 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=OG2008PZjL0H9Xg+EBwGxKiyxoGstQ6drRqgvSMoZ2U=; b=u48D7GdjcIHgrGOBrltXSNJBzLd2ps3OZRfiXjdf1s5zps8A+KWCquFl5mRopZQ90pDxSq ZKMKjsI4r/h/5uDg== 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 93D2F1346D; Tue, 20 Jun 2023 17:43:35 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id wQgWJEflkWTsMgAAMHmgww (envelope-from ); Tue, 20 Jun 2023 17:43:35 +0000 Date: Tue, 20 Jun 2023 19:43:35 +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 , Hannes Reinecke , James Smart , Martin Belanger Subject: Re: [PATCH blktests v1 2/3] nvme/rc: Avoid triggering host nvme-cli autoconnect Message-ID: References: <20230620132703.20648-1-dwagner@suse.de> <20230620132703.20648-3-dwagner@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Tue, Jun 20, 2023 at 05:07:43PM +0300, Sagi Grimberg wrote: > > > When the host has enabled the udev/systemd autoconnect services for the > > fc transport it interacts with blktests and make tests break. > > > > nvme-cli learned to ignore connects attemps when using the > > --context command line option paired with a volatile configuration. Thus > > we can mark all the resources created by blktests and avoid any > > interaction with the systemd autoconnect scripts. > > Hmm... is this hapenning with non-fc as well? I haven't seen a problem for TCP or RDMA yet but in principle it should also exists. I can do some tracing to see if we have also problem thern. Two of the udev rule match on the subsystem and the event type. > > +_nvme_cli_supports_context() { > > + if ! nvme connect --help 2>&1 | grep -q context > /dev/null; then > > + return 1 > > + fi > > + return 0 > > +} > > Not a great way to check support. Yeah, agree, it's a bit dodgy. I'll try to figure out a different way. Any suggestions?