From patchwork Mon Feb 12 10:40:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Wagner X-Patchwork-Id: 13552934 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 45E29182AF for ; Mon, 12 Feb 2024 10:40:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707734455; cv=none; b=Z1vTj/QahUL6Eb27ld4OfYJpyZPq4/KDasnZnRukPKlbu+yncIMqsFOHSGZ0TY+h+aeL7r+ps9DXq4I7QICbjN2J0IrK4Mefhy08D0+/ijY3CUw8Nih81odw6UKB8uvSRUNpoTPpjD5zR40FuQkAWbYVppFaDQNW8UU+pp8miCw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707734455; c=relaxed/simple; bh=oxeaNWNsnhmZdUEh0uAZugNTufXfGKDIZ5hLL8jqLC4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=YYGY3t2D/QY+4JfL1lehVNKYHnP0A5rIL/Yq6JI9rwyp0LCSrUadCLvUPWIgx8JWCmGeY0sFhcWaCG/uo3Am/LRnLCQzmeIVgHkihX817b/JeRYQ3/eQ4h3YwM9GoJSi/G/meal1EkWkOz8nwxaK7FZAYuzwcZc8nd1G1bpnDHw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de; spf=pass smtp.mailfrom=suse.de; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=NJS/GzaP; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=3O8XBbnm; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=NJS/GzaP; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=3O8XBbnm; arc=none smtp.client-ip=195.135.223.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="NJS/GzaP"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="3O8XBbnm"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="NJS/GzaP"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="3O8XBbnm" Received: from imap2.dmz-prg2.suse.org (imap2.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:98]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 6CA591FBB3; Mon, 12 Feb 2024 10:40:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1707734452; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FebT9pXx4EWS9DDD7uGtIJAl/WWtPHNBTe8inii0ClQ=; b=NJS/GzaP5+MmixUWmNcy7fXMDekdIP9FgRTfe7JRMKmBBgLSAhjlMhqzDJciqcemGi18bK ca9HnM3cbwQbmN23keP8+247IuHG7yIoWW7lkO7kpKQW/ug7mcFEeOllHbYQtn7Fetb7Du A0op10tBTqfpLIwYCX/ONpChQmZ8wII= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1707734452; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FebT9pXx4EWS9DDD7uGtIJAl/WWtPHNBTe8inii0ClQ=; b=3O8XBbnmLkKmg3A2sl8y7K+0lXbtUIGOK8lqMelxLTE9EJJXLzu0ap/KhOsAZMfhoBLFib RGjFEbcHx7kixvBA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1707734452; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FebT9pXx4EWS9DDD7uGtIJAl/WWtPHNBTe8inii0ClQ=; b=NJS/GzaP5+MmixUWmNcy7fXMDekdIP9FgRTfe7JRMKmBBgLSAhjlMhqzDJciqcemGi18bK ca9HnM3cbwQbmN23keP8+247IuHG7yIoWW7lkO7kpKQW/ug7mcFEeOllHbYQtn7Fetb7Du A0op10tBTqfpLIwYCX/ONpChQmZ8wII= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1707734452; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FebT9pXx4EWS9DDD7uGtIJAl/WWtPHNBTe8inii0ClQ=; b=3O8XBbnmLkKmg3A2sl8y7K+0lXbtUIGOK8lqMelxLTE9EJJXLzu0ap/KhOsAZMfhoBLFib RGjFEbcHx7kixvBA== Received: from imap2.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap2.dmz-prg2.suse.org (Postfix) with ESMTPS id 5A67A13A0E; Mon, 12 Feb 2024 10:40:52 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap2.dmz-prg2.suse.org with ESMTPSA id PvegFLT1yWXvCwAAn2gu4w (envelope-from ); Mon, 12 Feb 2024 10:40:52 +0000 From: Daniel Wagner To: Shin'ichiro Kawasaki Cc: linux-block@vger.kernel.org, linux-nvme@lists.infradead.org, Chaitanya Kulkarni , Daniel Wagner Subject: [PATCH blktests v2 3/5] nvme/rc: do not issue warnings on cleanup when using fc transport Date: Mon, 12 Feb 2024 11:40:44 +0100 Message-ID: <20240212104046.13127-4-dwagner@suse.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240212104046.13127-1-dwagner@suse.de> References: <20240212104046.13127-1-dwagner@suse.de> Precedence: bulk X-Mailing-List: linux-block@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Spam-Level: * X-Spamd-Bar: + Authentication-Results: smtp-out2.suse.de; dkim=pass header.d=suse.de header.s=susede2_rsa header.b="NJS/GzaP"; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=3O8XBbnm X-Rspamd-Server: rspamd2.dmz-prg2.suse.org X-Spamd-Result: default: False [1.39 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; SPAMHAUS_XBL(0.00)[2a07:de40:b281:104:10:150:64:98:from]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_MISSING_CHARSET(2.50)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; BROKEN_CONTENT_TYPE(1.50)[]; DWL_DNSWL_MED(-2.00)[suse.de:dkim]; RCPT_COUNT_FIVE(0.00)[5]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCVD_COUNT_THREE(0.00)[3]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; DKIM_TRACE(0.00)[suse.de:+]; MX_GOOD(-0.01)[]; MID_CONTAINS_FROM(1.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:dkim,suse.de:email]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; NEURAL_HAM_SHORT(-0.20)[-1.000]; RCVD_TLS_ALL(0.00)[]; BAYES_HAM(-0.10)[65.61%] X-Spam-Score: 1.39 X-Rspamd-Queue-Id: 6CA591FBB3 X-Spam-Flag: NO When running the tests with FC as transport and the udev auto connect enabled, discovery controllers are created and destroyed while the tests are running. The cleanup code expects that all devices are under blktests control, but this isn't the case. So just disable the warning as it is reporting a lot of false positives. Signed-off-by: Daniel Wagner --- tests/nvme/rc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/nvme/rc b/tests/nvme/rc index 9cc83afe0668..ca6a284a1e25 100644 --- a/tests/nvme/rc +++ b/tests/nvme/rc @@ -352,7 +352,10 @@ _cleanup_nvmet() { dev="$(basename "$dev")" transport="$(cat "/sys/class/nvme/${dev}/transport" 2>/dev/null)" if [[ "$transport" == "${nvme_trtype}" ]]; then - echo "WARNING: Test did not clean up ${nvme_trtype} device: ${dev}" + # if udev auto connect is enabled for FC we get false positives + if [[ "$transport" != "fc" ]]; then + echo "WARNING: Test did not clean up ${nvme_trtype} device: ${dev}" + fi _nvme_disconnect_ctrl "${dev}" fi done