Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp35526821rwd; Mon, 10 Jul 2023 08:39:59 -0700 (PDT) X-Google-Smtp-Source: APBJJlHE0qBkkZMWHNYRyMAems86rbmI7NVS1axnn3BJF/9IoHh+Tq6q449oLYpGCguzQVBDe7XO X-Received: by 2002:aa7:c30f:0:b0:51a:7bcd:a82d with SMTP id l15-20020aa7c30f000000b0051a7bcda82dmr10926348edq.23.1689003599035; Mon, 10 Jul 2023 08:39:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689003599; cv=none; d=google.com; s=arc-20160816; b=MWXl9Hla/K6qdBGjmEeA8ZC+thE5k++3XTys9WalR287s3mUAQ3SBAGR+WzzApMoMq DYoblOi1W9glgOMka9/sieAYa+pU9seLFYJHGtTSm7xE2x+BQlaO5kgyENQ81F8JGQUR 2AV/ihHiRYAPAVgiGQPLNs5RsV/AIAaOqcDlZ83B3qhewC/8Bt1HvmkxY/ZB/bNIjO8B vaLy9aUzxYKQpbmGyitOq/VQGhrZwh7FbwjUEWVlZ7UDTEH9/KH4jUT/ocJ2CnSIh0qg hFO84Srx5Te3p1sUoy8Psr0lA/bohyxToPirOwJV3HPxA8+CJ0L8D8Hjqx+HBDnUk/k9 ifgg== 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=n/qf8t736MhnMG6cgOeDWCdeGz1fhgazOeOiizGpyF8=; fh=Ilu53CfMl3KQUPVdN0LAHN3SMvwCFlIW2LsqBaQhbnQ=; b=o9Of8e8rtRJZHOQMX+qIaVJf+lXkHWZl1xpCh/VX5G2gOYDuEY0e9u8q9uspOgbbKv AQhsCu4TGSh4dPe0Dr7Lta9NNK9Dy2rg/njrqEKwzrPj8khcZ9ET4mlEGOvPPzOUSC5k O+9eyWg8dozfTvlPd3I43wKgxrvqgFNETl8KdYbbrs6by3EjOsLa48oJelqYFKwUp2em 4eTyfvcT9CV42vBIgOW1UjpBYXipolnv6sM9q1+raYlvojlIJyaekMOIvyA2udPBNmok Mvupjmy2Iahsir8newRnCk+bmOBkD08bY3Piu6H/kGaFfhQOyWe0i+mXwEtFQB8R45pq ccvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=yvfEOh8x; 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 m2-20020aa7c482000000b0051e0bd32fb6si10390397edq.645.2023.07.10.08.39.34; Mon, 10 Jul 2023 08:39:59 -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=yvfEOh8x; 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 S233427AbjGJPEC (ORCPT + 99 others); Mon, 10 Jul 2023 11:04:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233421AbjGJPDx (ORCPT ); Mon, 10 Jul 2023 11:03:53 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8558DE0; Mon, 10 Jul 2023 08:03:50 -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 035181FDD1; Mon, 10 Jul 2023 15:03:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1689001429; 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=n/qf8t736MhnMG6cgOeDWCdeGz1fhgazOeOiizGpyF8=; b=yvfEOh8xCXsPeFjboveHYNYtFBjZ4PxI4cCPf11WU2ffQrVJILoDI4I03maqJRHPi+1wWE 2OOt4Dz7nGL+iaiLepNZ6WoXBIdLSKEWut398C94OT00nMKScVeooF8b6kx4fjMg0QGqNk qz3e5AknEMS3ERBbdUu/QtfUCJPeXWo= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1689001429; 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=n/qf8t736MhnMG6cgOeDWCdeGz1fhgazOeOiizGpyF8=; b=re341B1pPYvrLz9MDRB7/fTJn1PKA7vOV91pL15Ld6o9yKp7rsQTJxYoYEe0MlmsY680KV tOk69sJYluVRJXCg== 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 E9A3B13A05; Mon, 10 Jul 2023 15:03:48 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id wfzpONQdrGQ6VgAAMHmgww (envelope-from ); Mon, 10 Jul 2023 15:03:48 +0000 Date: Mon, 10 Jul 2023 17:03:48 +0200 From: Daniel Wagner To: Max Gurtovoy Cc: linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, Chaitanya Kulkarni , Shin'ichiro Kawasaki , Sagi Grimberg , 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> <9c07e4f6-2cf5-b53b-6b48-bd4df8798ee9@nvidia.com> <39f9977e-b34c-f2dd-d356-8c78414a60d1@nvidia.com> <972a06e0-6841-043e-fc00-db7596f664c4@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <972a06e0-6841-043e-fc00-db7596f664c4@nvidia.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Mon, Jul 10, 2023 at 03:31:23PM +0300, Max Gurtovoy wrote: > I think it is more than just commit message. Okay, starting to understand what's the problem. > A lot of code that we can avoid was added regarding the --context cmdline > argument. Correct and it's not optional to get the tests passing for the fc transport. > Maybe it's worth cleaning it.. It really solves the problem that the autoconnect setup of nvme-cli is distrubing the tests (*). The only other way I found to stop the autoconnect is by disabling the udev rule completely. If autoconnect isn't enabled the context isn't necessary. Though changing system configuration from blktests seems at bit excessive. Another option is to detect if autoconect is enabled and report this when starting the tests. In this case we could remove the context part completely. Obviously, I would prefer to keep it but I am certaintaly not against dropping it and make blktests a bit simpler if this is the preference. I just need to remember to disable the autoconnect stuff when using blktests. (*) Sure we can fix this but at this point. Though I think it's a bit strange for a test suite to depend/interact with external components in this way.