Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp777015rdb; Sun, 18 Feb 2024 11:09:05 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUKtRD9ogwTSMaAOYTAnL4q3aIKSbuuYwDPtFv3VNWQFINVcRrgpg/6VCB+NYtjZbF949L1vF4W53nPife6pvyI7TgXGQQsDTy17Sj3XA== X-Google-Smtp-Source: AGHT+IGSb/L6ydtHm3JGhDttafb8xpe6IgqgUAwEjUMpoWeAySrmXzUtixUfP8dT1IMcG+Rgs39k X-Received: by 2002:a05:6359:4c1a:b0:17a:f91c:825b with SMTP id kj26-20020a0563594c1a00b0017af91c825bmr11647239rwc.5.1708283345563; Sun, 18 Feb 2024 11:09:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708283345; cv=pass; d=google.com; s=arc-20160816; b=eL/1cG09Rhjh6E+yhhIQXvKRiGixgYJGOjwOzwXtB6eX6g+Rk52EhxDAr9z2iQEvuX Zt89gBpbrUGzewTQ8wd0cRmkGvWo8gOBerfzjm5p587iTgZI+g/3kaAAdeFncVHvEF96 8KbqZ23y0Yo5eh2YdMFdfkcexWA8s0z3RVzH1Wj983ev1F0xRk+Da+YKVfSKh7fajHy7 x2t5IkTei7j2Ihvze1erar9pk2ZMt6IwNfK6ebbLF699nO/zfNYTCrbGWikKQ7FAFgSB k7HIbW2PqUbBEsRqfSdLeeg+M9nBZzE+aY2gWgUwxVUtIXJ7ez4EUJap0ubU2DysFXPp HqHg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=UO6BHw1ihzgpeRBQ0bvNxub7e+paexcL1WHjA8wQRHk=; fh=WZ0LX/s64lYkmKdbgVeZp7SW2Z1YkCzhkX3kwfYrBMw=; b=mhr9Rqqj0xNvet7DQ0DepQck1+YDFtKsWwEfiRXT0ou9CRyEGFJWZgz1lzPqQajs40 EzRoFSFBTt6l0WBNdn1jAbVDEXHwf4Cs39FoWPE0pGP1/d+AMw9n7yWNkIG7EIClVE6R Fkq3NiE0pBVFfHez3la8CKS9XxoFWbMUXtcxcHP1oE0VsHQlada0rd67uxEoQypWMk/C r1rVbeKyYgX8BSyaf1zO8FtXnOOf7VGrfPjOZmXg1a7vahhxI28gIEdDzx0dy0A3ZDTr maNLIoOPLxvmaiG8h+wrDYO6tmHJ7i1HHUPT2OGILTGX+ZaBOV8HXzhGxWBjmNl+4hUH QmvQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ucw.cz header.s=gen1 header.b=YpIsDUMi; arc=pass (i=1 spf=pass spfdomain=ucw.cz dkim=pass dkdomain=ucw.cz dmarc=pass fromdomain=ucw.cz); spf=pass (google.com: domain of linux-kernel+bounces-70537-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70537-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ucw.cz Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id sr3-20020a17090b4e8300b0029936b024a3si3343103pjb.125.2024.02.18.11.09.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Feb 2024 11:09:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-70537-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@ucw.cz header.s=gen1 header.b=YpIsDUMi; arc=pass (i=1 spf=pass spfdomain=ucw.cz dkim=pass dkdomain=ucw.cz dmarc=pass fromdomain=ucw.cz); spf=pass (google.com: domain of linux-kernel+bounces-70537-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70537-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ucw.cz 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 8190C281634 for ; Sun, 18 Feb 2024 19:09:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AFCE56F52A; Sun, 18 Feb 2024 19:08:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ucw.cz header.i=@ucw.cz header.b="YpIsDUMi" Received: from jabberwock.ucw.cz (jabberwock.ucw.cz [46.255.230.98]) (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 2A4FD2B9A7; Sun, 18 Feb 2024 19:08:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.255.230.98 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708283337; cv=none; b=lTX3sdsZAi7d/sgkElT0GlfDxE7gQZFw1GDdjiSDlhlYjxMJS7Djr6WsB/eJgT6XbMUnuOBusIUzp7oYbHrIiqkWxi1uM2wREwk9bU5Al+UkBXyvwY9gmlLQZEtT/WQ2mIc8oJ1acDzG2hDJd92Dakj2GAI9WCdRaS5329wyGZ0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708283337; c=relaxed/simple; bh=PpSH5hvi4dsg4c550Qq2foXlIH3ewfO00DQgws+5isQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=WjNzQSH5Ktc2jNf/Gl+OvGwsaG3SaWl7hveZDh5RLTklrCOx5UmfxVLZKxnvL8ly0sDMB7BIbad6o0OqdfMjEXxtVIsl+sJqhu3HAm5ZH2AYrRcx90R5KriCyASJKsaT/C7Ew9PL609salNe0utISRW/IyjVr42kuP6O/Iainbs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ucw.cz; spf=pass smtp.mailfrom=ucw.cz; dkim=pass (1024-bit key) header.d=ucw.cz header.i=@ucw.cz header.b=YpIsDUMi; arc=none smtp.client-ip=46.255.230.98 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ucw.cz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ucw.cz Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id E76781C006B; Sun, 18 Feb 2024 20:08:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucw.cz; s=gen1; t=1708283331; h=from:from:reply-to:subject:subject: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=UO6BHw1ihzgpeRBQ0bvNxub7e+paexcL1WHjA8wQRHk=; b=YpIsDUMiPL4NwLKKvg8ynwih9EeW2hmqUwxY3yApkx7HD5+0Ednpy2C4PYQUg4pQPNTkeO OrcaPIMchZzi/DHlWy3C4Wz88zm8nDqO3jaEllihLV2wCWv+obWxOY8k8SgD2p80dqZTkE o7aBdrMJ572NzHvOJ7P+mLKlDs1otD8= Date: Sun, 18 Feb 2024 20:08:51 +0100 From: Pavel Machek To: Sasha Levin Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Daniel Wagner , Hannes Reinecke , Christoph Hellwig , Keith Busch , james.smart@broadcom.com, sagi@grimberg.me, kch@nvidia.com, linux-nvme@lists.infradead.org Subject: Re: [PATCH AUTOSEL 5.10 13/16] nvmet-fc: do not tack refs on tgtports from assoc Message-ID: References: <20240207212700.4287-1-sashal@kernel.org> <20240207212700.4287-13-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="LfSJrMDKQ4jMO3dD" Content-Disposition: inline In-Reply-To: <20240207212700.4287-13-sashal@kernel.org> --LfSJrMDKQ4jMO3dD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > From: Daniel Wagner >=20 > [ Upstream commit 1c110588dd95d21782397ff3cbaa55820b4e1fad ] >=20 > The association life time is tied to the life time of the target port. > That means we should not take extra a refcount when creating a > association. I don't see this one queued for 6.1 or 6.6. What went wrong here? Best regards, Pavel > +++ b/drivers/nvme/target/fc.c > @@ -1110,12 +1110,9 @@ nvmet_fc_alloc_target_assoc(struct nvmet_fc_tgtpor= t *tgtport, void *hosthandle) > if (idx < 0) > goto out_free_assoc; > =20 > - if (!nvmet_fc_tgtport_get(tgtport)) > - goto out_ida; > - > assoc->hostport =3D nvmet_fc_alloc_hostport(tgtport, hosthandle); > if (IS_ERR(assoc->hostport)) > - goto out_put; > + goto out_ida; > =20 > assoc->tgtport =3D tgtport; > assoc->a_id =3D idx; > @@ -1145,8 +1142,6 @@ nvmet_fc_alloc_target_assoc(struct nvmet_fc_tgtport= *tgtport, void *hosthandle) > =20 > return assoc; > =20 > -out_put: > - nvmet_fc_tgtport_put(tgtport); > out_ida: > ida_simple_remove(&tgtport->assoc_cnt, idx); > out_free_assoc: --=20 People of Russia, stop Putin before his war on Ukraine escalates. --LfSJrMDKQ4jMO3dD Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCZdJVwwAKCRAw5/Bqldv6 8gWHAJ48kG4XWYE4gvOKhhrCrFwKENwUXwCfdMTyE10BLyKcPXjjH72pOsUk44U= =ByLx -----END PGP SIGNATURE----- --LfSJrMDKQ4jMO3dD--