Received: by 2002:a05:7412:8598:b0:f9:33c2:5753 with SMTP id n24csp276491rdh; Mon, 18 Dec 2023 20:36:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IG88u/Ip34sxab+a7K407bo0sCKAgJtxDtKh2kmPPRisUOefAt4l/80omLWTSIQOAYPj6hW X-Received: by 2002:a50:8e1a:0:b0:552:2929:66eb with SMTP id 26-20020a508e1a000000b00552292966ebmr6091180edw.45.1702960590996; Mon, 18 Dec 2023 20:36:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702960590; cv=none; d=google.com; s=arc-20160816; b=rSTNi2/4xTbE/P5LK+QPHwITnjWvMPJf1j1Ylbb6tij+x3nXEhlKwkxCKdJTEAb03t 5TFCbj+BNBrteTLj37BPeqwJwvpJ8YyD27PBAILzGF/YLXtrT011RY6GnYKbihx6c47/ eiyvIERzrH0drlh01YWhgfqVCodO2/98poVmE23MTvVzBbkv9wSxM7hzVHXkyEZpuDHc 3q0TGw+OCuzc3m8sXszfETn1LmpZl6KTP8RIzWbX3mK08YCmQnpgfjCcsNO/z/8aAIh3 1NXIggcIdXdz8NXNU652vAxOaM98iMWIevz2T/e8nHPKZnKr/dK1A7gYQbgoDRdyHRt+ iEkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date; bh=fr/3XLyjK3prTZsSkmfK87KUCl14mi8DOoR8ElVlj5E=; fh=bO7QqOZggiuZIv2kiYKYk6++3Sxs5btaWVIXOG50Ggw=; b=J3PsGeGT4pafHXeJyvYyPLgvrfs9H/KkKJALp2jEkItaeGKarPx5p23WkqhZ9nRQPj F5sbjn7hOp6rcgE1c/vvq0iplvSoJmFOjerWneHhlrFAt785maitkfr+wpEIsa4ntlFM gdWpnZOR2EMUefvu3lBHlZYiJst53RV/nGHta4Igv3jehdVcNNIIUbmCLS5+V/JM2lO8 9FfX8HB7exCxpJYycgAK37+dqpG3sOJUJiEMVml1BpiMD4EoVSsSM1LgUIua1KsfUXvj e5ta8Ptt1r+2j16siAiml4peYEkBPl/YQENS1Rbmyyk9+p0niCrljUtUf7UC64OUqRtM 3w7A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-4687-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4687-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id k7-20020a508ac7000000b0054c74d42220si10370118edk.347.2023.12.18.20.36.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 20:36:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-4687-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-4687-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4687-linux.lists.archive=gmail.com@vger.kernel.org" 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 am.mirrors.kernel.org (Postfix) with ESMTPS id ABD5A1F2454A for ; Tue, 19 Dec 2023 04:36:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6FE8A5C98; Tue, 19 Dec 2023 04:36:24 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DF29D441B for ; Tue, 19 Dec 2023 04:36:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lst.de Received: by verein.lst.de (Postfix, from userid 2407) id 6FD8168AFE; Tue, 19 Dec 2023 05:36:19 +0100 (CET) Date: Tue, 19 Dec 2023 05:36:19 +0100 From: Christoph Hellwig To: Daniel Wagner Cc: linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, Christoph Hellwig , Sagi Grimberg , Keith Busch , James Smart , Hannes Reinecke Subject: Re: [PATCH v3 07/16] nvmet-fc: Release reference on target port Message-ID: <20231219043619.GH30580@lst.de> References: <20231218153105.12717-1-dwagner@suse.de> <20231218153105.12717-8-dwagner@suse.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231218153105.12717-8-dwagner@suse.de> User-Agent: Mutt/1.5.17 (2007-11-01) On Mon, Dec 18, 2023 at 04:30:55PM +0100, Daniel Wagner wrote: > @@ -360,6 +360,7 @@ __nvmet_fc_finish_ls_req(struct nvmet_fc_ls_req_op *lsop) > > if (!lsop->req_queued) { > spin_unlock_irqrestore(&tgtport->lock, flags); > + nvmet_fc_tgtport_put(tgtport); > return; Adding an out_put label and jumping to it would be nice here to keep the cleanup path common.