Received: by 2002:a05:7412:8598:b0:f9:33c2:5753 with SMTP id n24csp332891rdh; Mon, 18 Dec 2023 23:28:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IEnJhbD/333/yfnztnLO0X850XsDCmpKlcuCF6928wEAtENlVObcFozC6SfkVUvwqq0ARp8 X-Received: by 2002:a05:622a:1895:b0:425:a982:b5f5 with SMTP id v21-20020a05622a189500b00425a982b5f5mr26624176qtc.94.1702970911264; Mon, 18 Dec 2023 23:28:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702970911; cv=none; d=google.com; s=arc-20160816; b=LpT+N9e9xp9kE35POaPfzuhE+aYUlk3Wltc6htqm6MY2eOLK9M4wB7h3j0ENeFaLKx E22pZ52umRWIIbT04CyU3RbVtm+NL7IrOXt4+jkAVipeoPq7Krgvz58vqlEVpbWJDpT3 rDryxCASWokPoCzHi6LrvVnfY/+m9OmvX9jPWb1uSQz3V9cp0nLtTaiBcwvllvhLthGb caCeYk0cE8WKGwWSoy6nv6yVwJ+0dxVOfHJfOfl3gSgP4LQ8fea51JOEYset/iG9ic7o aRX4y2bMX5Pp3ZN6ebfH5WTDxdUg0q2nnfNpEm4Z+3zatO9B9hbRjHxn8/Ncz52vJ05k snPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature :dkim-signature:dkim-signature:dkim-signature; bh=Mgm5UyMxbdRWtEM0SaQ0v0sCDYs9AsyA2ZGCDARH4IE=; fh=Ob8FspbdAv2lvfy9oyzcNqJb9FlG/MYewgbmONDw7dw=; b=FJo7JUgE7wUvJMgrPA9sRNVlvnnW7rdWP5tFbtvTzEDURag+AxeXz4zifiutVm/eJp Hf6bcJjkgAoE4sSWmRbDeYTJ6fMk18Amy4BiNDOqS1AGy3xSDOq0BZ6sblyS2LFHBoZw i7Ps1ONOFnDHJzdJPeP3DYzVMtfLDLT5gZ1BTOFrsowtTr16BZ9dow5xfkbjGP/u0W6H af6OkW5EFDy/yvTZMTiyX6ME2duM0vUeXC7YFbuaAL1fyyUKz002VQ5K4X/qKkzLedZa /CQLlf39jVL+s9aayDs+ioplSmfQX9vSoDMk0t9/I8UrDXnmcBIKCU7lh5LShImmhK0n Q1fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=yXdQPBKA; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b="moG/AdGP"; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=yXdQPBKA; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b="moG/AdGP"; spf=pass (google.com: domain of linux-kernel+bounces-4807-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4807-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id dn9-20020a05622a470900b00423a0b26c0asi15392949qtb.51.2023.12.18.23.28.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 23:28:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-4807-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=yXdQPBKA; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b="moG/AdGP"; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=yXdQPBKA; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b="moG/AdGP"; spf=pass (google.com: domain of linux-kernel+bounces-4807-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4807-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 0C61A1C236E7 for ; Tue, 19 Dec 2023 07:28:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 421348832; Tue, 19 Dec 2023 07:28:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="yXdQPBKA"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="moG/AdGP"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="yXdQPBKA"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="moG/AdGP" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (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 25E73111BC for ; Tue, 19 Dec 2023 07:28:14 +0000 (UTC) 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 Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [10.150.64.97]) (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-out1.suse.de (Postfix) with ESMTPS id 6030A222EE; Tue, 19 Dec 2023 07:28:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1702970893; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Mgm5UyMxbdRWtEM0SaQ0v0sCDYs9AsyA2ZGCDARH4IE=; b=yXdQPBKAhxEAsBcRbpt2UgI75NLkKgq7kNkHLVsKF+LLHyEpRS0ibbn2XugQJQPym1wiT7 R+HrQ6TadpQSuq5vc4P2/CyyE7kww9bCwC+2IkKgIJR2dPY6xryv6zLgUwe87u5s4t3qE3 5s7qXuMrmUHFXTWgbZTTORW8fpIn+8A= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1702970893; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Mgm5UyMxbdRWtEM0SaQ0v0sCDYs9AsyA2ZGCDARH4IE=; b=moG/AdGPrPIWlov2tI/LS9ns7KEuxubuRmXXowXUBKUOJF6GGlZvHEgZY3DfjUG96ALhws NxkeRfOBYzFc74CQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1702970893; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Mgm5UyMxbdRWtEM0SaQ0v0sCDYs9AsyA2ZGCDARH4IE=; b=yXdQPBKAhxEAsBcRbpt2UgI75NLkKgq7kNkHLVsKF+LLHyEpRS0ibbn2XugQJQPym1wiT7 R+HrQ6TadpQSuq5vc4P2/CyyE7kww9bCwC+2IkKgIJR2dPY6xryv6zLgUwe87u5s4t3qE3 5s7qXuMrmUHFXTWgbZTTORW8fpIn+8A= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1702970893; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Mgm5UyMxbdRWtEM0SaQ0v0sCDYs9AsyA2ZGCDARH4IE=; b=moG/AdGPrPIWlov2tI/LS9ns7KEuxubuRmXXowXUBKUOJF6GGlZvHEgZY3DfjUG96ALhws NxkeRfOBYzFc74CQ== Received: from imap1.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 imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 9438813AA6; Tue, 19 Dec 2023 07:28:12 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap1.dmz-prg2.suse.org with ESMTPSA id kGCpHwxGgWVmcgAAD6G6ig (envelope-from ); Tue, 19 Dec 2023 07:28:12 +0000 Message-ID: <90f10adf-d4ec-4cc6-aecf-e20290ca6746@suse.de> Date: Tue, 19 Dec 2023 08:28:12 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 06/16] nvme-fc: Do not wait in vain when unloading module Content-Language: en-US To: Daniel Wagner , linux-nvme@lists.infradead.org Cc: linux-kernel@vger.kernel.org, Christoph Hellwig , Sagi Grimberg , Keith Busch , James Smart References: <20231218153105.12717-1-dwagner@suse.de> <20231218153105.12717-7-dwagner@suse.de> From: Hannes Reinecke In-Reply-To: <20231218153105.12717-7-dwagner@suse.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Level: Authentication-Results: smtp-out1.suse.de; none X-Spam-Level: X-Spam-Score: -3.97 X-Spamd-Result: default: False [-3.97 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; XM_UA_NO_VERSION(0.01)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; BAYES_HAM(-2.69)[98.63%]; MIME_GOOD(-0.10)[text/plain]; 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]; NEURAL_HAM_SHORT(-0.20)[-0.982]; RCPT_COUNT_SEVEN(0.00)[7]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:email]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-Spam-Flag: NO On 12/18/23 16:30, Daniel Wagner wrote: > The module unload code will wait for a controller to be delete even when > there is no controller and we wait for completion forever to happen. > Thus only wait for the completion when there is a controller which > needs to be removed. > > Signed-off-by: Daniel Wagner > --- > drivers/nvme/host/fc.c | 20 +++++++++++++------- > 1 file changed, 13 insertions(+), 7 deletions(-) > Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes Reinecke Kernel Storage Architect hare@suse.de +49 911 74053 688 SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB 36809 (AG Nürnberg), GF: Ivo Totev, Andrew McDonald, Werner Knoblich