Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp833606rdg; Fri, 11 Aug 2023 00:47:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHPF5wp4tubEabuyXrJ6NFyYySLbWXnEEtAmKBEB+VQ2jp16Hu8SGO6wmm1cfr9++Y/elfa X-Received: by 2002:a05:6a21:7887:b0:138:68b9:138e with SMTP id bf7-20020a056a21788700b0013868b9138emr5831855pzc.8.1691740054779; Fri, 11 Aug 2023 00:47:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691740054; cv=none; d=google.com; s=arc-20160816; b=Y83BjRRr4p8KN5wECuoh0jfKMKQmdbZRJ5ZV8o1ln2GIo7TtOIY2wz/umsDAfi/PH9 mQnVmr5iVoJDRwf1idveOSDQYYUr4el8cXdrTokunMuJdtEHSL8SC/w+bdj8wuZKGdgC FN1Y4yY3xxvxFHVxYAXiz0NyRPt/2mLUcgYgVUDbPrU9S7Ty+D4F+foWRFolZB/X2qpD MpDa5INL3iVYoBFycRLdc0RC0fiOEjjEBUUU3MA1O68eFKyREPLmBfpFn2E0HLiXpuXy o3esAAveLd9da7yLIduFpjcN9MZxdGMfIqSrMAhs5M7qkVlO1ri+hbuIbWQMFI/feFEO ND+w== 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=5TvYKLMWI/NIom9JlPXN9nqU6UcIqiomj19OoorV1z4=; fh=7xp4xcfMRayHMLPJgvpNZ8yVMClvr2OlfCTFMlWW9fo=; b=De5QmzJNqRrImnwW67FhJOFqlrTRUTQT0vb/Tto+tcDTv+/18uu0p+tNVEElA5G0yZ qLVTvyRLaJnjrMMGhWt7N8vssNYpP0vBXJHPq0ipfrxxFom/biX/x8Hzc2nLJC+mDB26 QgTq8dIEg1dTtc+uZwQ2/Hdrd7HM5Yf8v1ynBvLtDKdmO/leumryQ6kFW0/iBa1nHVTz qPwOmFq1qmjjdHdc2zOVEqAjlUxVRQ5O3w3BAxaQbMS59r96j0VVd97akqCURBwZ0Xjx iPcVB0Hk/RQmb63JFppY+UDi8Z94fHJiGRIURKu1LKaslRBin0b/DW1LSnjDJU/hTLdd dV1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=GUQUpr+c; dkim=neutral (no key) header.i=@suse.de header.b=Pb1Xp+tI; 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 x26-20020a63171a000000b005638355e989si2828019pgl.773.2023.08.11.00.47.23; Fri, 11 Aug 2023 00:47:34 -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=GUQUpr+c; dkim=neutral (no key) header.i=@suse.de header.b=Pb1Xp+tI; 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 S231225AbjHKHAs (ORCPT + 99 others); Fri, 11 Aug 2023 03:00:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229514AbjHKHAr (ORCPT ); Fri, 11 Aug 2023 03:00:47 -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 3F8551FCF; Fri, 11 Aug 2023 00:00:47 -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 5F4DC21869; Fri, 11 Aug 2023 07:00:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1691737245; 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=5TvYKLMWI/NIom9JlPXN9nqU6UcIqiomj19OoorV1z4=; b=GUQUpr+co5mgg/Pi8/bOOJF9VT4yYnHTaeGqRgFmO7+hMcgg9QRNpBz+ilmjsf/jD71cJV ss2PLx92jRXMWTD3lTwW69vvl0LsjrovZbct3sAX4P0po50CUl6rUauhr7/CJsN5lOXUmw 3O5w3A/wuoH4IHLmuA2jC2YCKDUFuik= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1691737245; 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=5TvYKLMWI/NIom9JlPXN9nqU6UcIqiomj19OoorV1z4=; b=Pb1Xp+tIIYlDANA863XfyQzRL1PduODU1FM+DkwqpQWBqULqBKvhcrPhXf5MNdyAWgATaq v0TU3tHT93fn8NCQ== 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 4911113592; Fri, 11 Aug 2023 07:00:45 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 6Sa5EJ3c1WReWwAAMHmgww (envelope-from ); Fri, 11 Aug 2023 07:00:45 +0000 Date: Fri, 11 Aug 2023 09:00:47 +0200 From: Daniel Wagner To: Shinichiro Kawasaki Cc: "linux-nvme@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "linux-block@vger.kernel.org" , Chaitanya Kulkarni , Max Gurtovoy , Hannes Reinecke , Sagi Grimberg , James Smart , Bart Van Assche Subject: Re: [PATCH blktests v2 00/12] Switch to allowed_host Message-ID: <2u7xe3szftmoeicayxahqt6r44lgkwl6owvmlkjpby4mqvu6hh@pq2gfkgw6p6e> References: <20230810111317.25273-1-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=-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,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 Fri, Aug 11, 2023 at 06:16:45AM +0000, Shinichiro Kawasaki wrote: > > So we could return the nvmedev from _nvme_connect_subsys() but I don't know if > > this a good idea. > > IMO, it is a good idea to make _nvme_connect_subsys() return the device. The > similar function _nvmet_passthru_target_connect() does that, so it is another > small goodness to have consistency between the two. Sure, I'll look into this when I remove the udev trigger filter code again which resulted in this series. But let's get this series sorted out first. > > FWIW, it would also fix the current problem we face with > > nvme/047 which seems to lack the second _find_nvme_dev() call. > > I posted the fix patch for the nvme/047 problem reflecting your comments. I hope > that fix settled before further refactoring. Yep, let's get the bug fix in first. > It is a fun to see the much of the boiler plates go away with the > series :) Ineed, makes the test way smaller. BTW, what do you think about removing nvme/006 and nvme/007? They are basically doing nothing anymore except setting up a target with either device or file backing. We exercise this code now in all the other tests. So this is bit redundant IMO. > Thanks. I provided two minor comments on the 5th patch and 10th patch. Other > than that, this series looks good to me. Also I did another trial run, and > saw no regression. Good. I've updated the series accordingly. Let me run a quick test and then I post the update.