Received: by 2002:a05:7412:8598:b0:f9:33c2:5753 with SMTP id n24csp288479rdh; Mon, 18 Dec 2023 21:17:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IEyH4CPzoX+4HXjxJqa55hW8XZrJj/6xlA9Z38Qbydsb/IrAgP/XJaLu47Mx2zyfK2u3gGx X-Received: by 2002:a05:622a:350:b0:41c:bbbc:2ede with SMTP id r16-20020a05622a035000b0041cbbbc2edemr25563539qtw.14.1702963023587; Mon, 18 Dec 2023 21:17:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702963023; cv=none; d=google.com; s=arc-20160816; b=DuHSk+YjBQXeENoGP+7z5Z2muLDRodIih/RMHuDilkEfcze3cW82ulkTCS813dn/B9 Q3T37u0rfd/fdtyRjD09DUI3Gl4wSvJitYW630Qn60KYy01ESPj0PR8oplW1WOVH/Ruy KXK7dYOnpcUf+s+N1ULr7Q7Wxs2qBf3e/Of1wJCMjhuD6sh2jnaz25vUA8XprVAk0hMG UGVWlGCVw5LgFE+l0MrwfdOe9yY5Iw6sG4tGpolXgPsP8IJgZx43mqBgMgnt+rdv7WBZ /4KbXlEH8Scem0OIX0m9GHQ17D0nRdNbrF8wiCkG1tZ26iQwr+qFhA7/KebjbfyOyv6z jmOA== 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=9PRzMeoGrTZrbQuCQTyxlw1WG85Fb3NgYkP4w9dbGu0=; fh=bO7QqOZggiuZIv2kiYKYk6++3Sxs5btaWVIXOG50Ggw=; b=xpgpfyW3kJyvABVoJXqTnvVffyl8FfEpfXnGaqAKy0qJVXe713CkknnGXPkjEExMpl BhobuYgj2ToAyXSvk/hNVnTbf/6N23tVMZg4wmoh8Da3y8x4wxxLFPHDArmUTcXyJOkU /ITmNtkkAhDWj2N0z275F6d8zBFwoekmtw/FgQiNSkbiVYyekk+GZGvMVNIueKwNGsiH 6GNy/yoGxlMmMpK0jw6D8YH66GmKt6UvKK7hteY4ErjQ2MVIoFnOuQAVjdUm93f/op05 gkyk5FDfxHjbPiETn3NgpFtEWpKjxSENMsbu653I/7upu70BoBIHUKgcRfpwMb6r9gTT rVfg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-4707-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4707-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id p4-20020ac87404000000b004238e6eec52si23238788qtq.279.2023.12.18.21.17.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 21:17:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-4707-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; spf=pass (google.com: domain of linux-kernel+bounces-4707-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4707-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 23E621C21903 for ; Tue, 19 Dec 2023 05:17:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 02D0C11CB6; Tue, 19 Dec 2023 05:16:56 +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 7EA2211C96 for ; Tue, 19 Dec 2023 05:16:53 +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 812FD68AFE; Tue, 19 Dec 2023 06:16:48 +0100 (CET) Date: Tue, 19 Dec 2023 06:16:48 +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 08/16] nvmet-fc: untangle cross refcounting objects Message-ID: <20231219051648.GA32634@lst.de> References: <20231218153105.12717-1-dwagner@suse.de> <20231218153105.12717-9-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-9-dwagner@suse.de> User-Agent: Mutt/1.5.17 (2007-11-01) On Mon, Dec 18, 2023 at 04:30:56PM +0100, Daniel Wagner wrote: > The live time of the queues are strictly bound to the lifetime of an > + struct nvmet_fc_tgt_queue *_queues[NVMET_NR_QUEUES + 1]; > struct nvmet_fc_tgt_queue __rcu *queues[NVMET_NR_QUEUES + 1]; For magic prefixes we use __, not _ in Linux. But having two arrays of queues right next to each other, once with rcu annotation and one not rings a bit far warning bell to me. Why do we have both? When are we supposed to use either? Why is FC different from rest? I really don't have any good answers as I don't know the code in the FC transport very well, but I think this needs more work.