From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A0578C4828D for ; Tue, 6 Feb 2024 05:48:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From :Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=i2aHXsqiVoI5h/tldTX38u+yn6tjU0prltUymAX2qmc=; b=Gc4dEXT37tepSQ46dISSv6kxKB 7flBjsP7765qgQQz9yDe20DLVCpvdZjnqTKZGucZ1qcPyEsQwR16JjHGU/TFF3BzygxMW2R+YNgvU hEDlE8e7o9LzWPnwyyxKPD514PszfWVVPmDYgctnDS4f8vAFFw1+1wZ87DRF61GSFPmPNbSSKZFhU JBxnPmLsf2NqH1n7+aG2y7q7Zp4XmVLYyWjhAHYnyOP99EZQf2JdrQUVqtjI6u9L6ahFOS9XSOdNW zx+TjKaGq+hb7708Th051UoCqYYRY4OXs8uB2qjLC+ZMI/uLl5ld4SP09IBOQ7RASeXgvcOH2r3rx zRBcVMHQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rXEJU-000000069Ex-3lRz; Tue, 06 Feb 2024 05:48:08 +0000 Received: from smtp-out1.suse.de ([2a07:de40:b251:101:10:150:64:1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rXEJQ-000000069D2-2w5R for linux-nvme@lists.infradead.org; Tue, 06 Feb 2024 05:48:07 +0000 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 C158D221B7 for ; Tue, 6 Feb 2024 05:47:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1707198479; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=i2aHXsqiVoI5h/tldTX38u+yn6tjU0prltUymAX2qmc=; b=k+bQpXJetaLYiRRE4QRSIvZ8jZw+iSI3pzrjpVuieEinyAe6LtSKWuucL2/w4q5WL+wpqg Xm1oysTYC8SEVKhBSEafaDaBaySM/NbVGF9OpaewtVptzvO6+wuRhNVaezelhN24qUBRUf HHtSVHLXjqApQDhSgPP6ehfiiqbL834= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1707198479; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=i2aHXsqiVoI5h/tldTX38u+yn6tjU0prltUymAX2qmc=; b=HEANzftikcsd4mt8rSInFyuDWZ2oJGUbcp9iqt3hyUeYYK38mLAGTPA0ywVCkfvhAyEc7B b1Mff8ByLvN6M1Cg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1707198477; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=i2aHXsqiVoI5h/tldTX38u+yn6tjU0prltUymAX2qmc=; b=nXHcVrU6iYqATLvKYUCk6iVHGbo7XbFM87+8p/4dzunjdr5+rb1Ao8UpWVHp5SfaX3xsyO 44IeuODIr+9+XgN+WhVlzlgKua0dK0w2CzhrQnosWsK+LCqr+l4PLOjj287nlvSDJpIy6b OU1ft92vI/Sp57S0h3Fc8K2DPrb6eaQ= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1707198477; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=i2aHXsqiVoI5h/tldTX38u+yn6tjU0prltUymAX2qmc=; b=pfJMFD+7XjgYZIrHFl2Cuj6HL4SJGLTEvWY78Yl5K2Z8uyBpG3SZH6E4mc1XnxQSIgzxcv wSoFD8G0oXqn2OAA== 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 11058132DD for ; Tue, 6 Feb 2024 05:47:56 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap1.dmz-prg2.suse.org with ESMTPSA id KIjOKwzIwWVFOAAAD6G6ig (envelope-from ) for ; Tue, 06 Feb 2024 05:47:56 +0000 Message-ID: Date: Tue, 6 Feb 2024 14:47:54 +0900 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 11/12] nvmet-fc: take ref count on tgtport before delete assoc Content-Language: en-US To: linux-nvme@lists.infradead.org References: <20240131085112.21668-1-dwagner@suse.de> <20240131085112.21668-12-dwagner@suse.de> From: Hannes Reinecke In-Reply-To: <20240131085112.21668-12-dwagner@suse.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Authentication-Results: smtp-out1.suse.de; none X-Spamd-Result: default: False [-0.67 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; XM_UA_NO_VERSION(0.01)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; BAYES_HAM(-2.40)[97.27%]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[linux-nvme@lists.infradead.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; 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]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:email,lst.de:email]; NEURAL_SPAM_SHORT(2.83)[0.942]; 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240205_214804_976184_0AE869AC X-CRM114-Status: GOOD ( 10.46 ) X-BeenThere: linux-nvme@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-nvme" Errors-To: linux-nvme-bounces+linux-nvme=archiver.kernel.org@lists.infradead.org On 1/31/24 16:51, Daniel Wagner wrote: > We have to ensure that the tgtport is not going away > before be have remove all the associations. > > Reviewed-by: Christoph Hellwig > Signed-off-by: Daniel Wagner > --- > drivers/nvme/target/fc.c | 31 +++++++++++++++++++++++-------- > 1 file changed, 23 insertions(+), 8 deletions(-) > Signed-off-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