Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp90678lqp; Thu, 4 Apr 2024 07:52:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV+Wrj3cAwqCOFDllYGhMYRFLQ3YNRosAMn6n/JU17eEnBTfqhIzyWc7SgLlUHOfkKY87eYA1E7Zpf3xFB8DTmzTez88wgWoG9ZEcKI4Q== X-Google-Smtp-Source: AGHT+IFYYa8QUZOPHhhPZGziOPcf+ya75qsRthtNLtUYovzspo8npHmKy9Xv9vAJZPE+7D5+iVWP X-Received: by 2002:a05:6a00:10d2:b0:6ea:c449:ece9 with SMTP id d18-20020a056a0010d200b006eac449ece9mr2706272pfu.31.1712242345005; Thu, 04 Apr 2024 07:52:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712242344; cv=pass; d=google.com; s=arc-20160816; b=QW2Qmd+Nroaw0BP0OUQ/ucprKSuZpcl5SlcNiHu9O4pTUDpkwClZDXjiBQkrJhCuu2 NHByK6OTIZ8n9gZhZDvx8XEFKp2+EOXHqIILUFlzo7s221xGXan+HJ4fdMpGB2WuscHS Q5xEFSkhUFVApZszKqYGHjUkp4AOO1diHkuJBYEfDG67Isr2EdJqJDCGKRsEUlHT3XUf 5jm1sMkEki9jozggtI7UBNbAAplNzF39ZTZkfgCvERIWzD5y6siKWILIzj2/azi7zbIq G4junqlrB2k1qgKBA16axYsg6BrTEFhu1Gpz3ZXQfDHGTsiWZK3DBtaKsWT4R9xrjh6O VOlA== ARC-Message-Signature: i=2; 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; bh=nNfnFQEf7prgQR/w7DKgaspU+W1gSOJ8Uj1qxD1o2ac=; fh=higRAyfTZijyI0ABoPTbYeibRCGoBaa7ALQNL8SKxyI=; b=iW9A5xowGXcLZj1XaLtS1cCUeQe+VGxA0QxUtwg9+Ay/feZxE7GUYS0/6nC3GcsQ3V V/slFT+gKT9VOyAWZSxwKew7kvT49PTJdM+MBCILj9bjFs8f4Rhf+2/Xk7tW4EoCgLuM aE4GCHaOxKzpF+FFRJA8DaIFY4de8x07lOMjN7iGm5xZou3ig+HzUcwbwCJ4mTq736R6 DGx4wBX4/yxPBfn0bjPdYdAUOwFMmVQ6UH39qb9D/Xvnq2yaDtLKv6SBFAe5u/hRi84N 5X7eNvKfW8t+M5XOjH0Oniy+PRcCJSTkO37ZjzurJCejjdBTKUWH/I+MmSxoVkljFbzF pR3w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-kernel+bounces-131652-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131652-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id k123-20020a636f81000000b005dc4300d4f0si15242406pgc.444.2024.04.04.07.52.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 07:52:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-131652-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; arc=pass (i=1 spf=pass spfdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-kernel+bounces-131652-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131652-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 4C274284143 for ; Thu, 4 Apr 2024 14:52:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5A8221C2A1; Thu, 4 Apr 2024 14:52:12 +0000 (UTC) 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 6EED0D272 for ; Thu, 4 Apr 2024 14:52:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712242331; cv=none; b=nWgsttzdolvUwy2Upde1Pv1YsFm0v9TTjqAPRt9jxevcP0SYlG177h31CELK+E8CNc176j4mCG06TcQg4PFXXwhehra4MHiDySoPfPNPtwbmh1G3nhbqzWcUZSMVyvNZYRFKD8jOWjYxyhy3SNZgUYhu+85+Uc/+pqOEVlpAd2U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712242331; c=relaxed/simple; bh=QF9HkIuWsSic0KX2uG9t0B+7k4VvuK+u22k6FjJNdAo=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=DewYeKk/WzfaX96E7Orh0l9YqbKsaJcTELnGfhiEBRqt3ziovxHR2denZeunyAF1t812f/VPwn5IRuv9hjqcxezLAmCyo32Mb2ch+DxLVsZae2ipez7pNLH8YH/csZyITEOSofYN62vxl8pGbDmjylUFFGQtHVX83rKKwSTGoiM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de; spf=pass smtp.mailfrom=suse.de; arc=none smtp.client-ip=195.135.223.130 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 imap2.dmz-prg2.suse.org (imap2.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:98]) (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 C17D337AE7; Thu, 4 Apr 2024 14:52:08 +0000 (UTC) Authentication-Results: smtp-out1.suse.de; none Received: from imap2.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 imap2.dmz-prg2.suse.org (Postfix) with ESMTPS id 4237D139E8; Thu, 4 Apr 2024 14:52:08 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap2.dmz-prg2.suse.org with ESMTPSA id AbN3DZi+DmbiEAAAn2gu4w (envelope-from ); Thu, 04 Apr 2024 14:52:08 +0000 Message-ID: <8443e745-3bbb-4be0-a36f-3a6135935aa4@suse.de> Date: Thu, 4 Apr 2024 16:52:07 +0200 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 v2 1/2] nvmet-fc: move RCU read lock to nvmet_fc_assoc_exists Content-Language: en-US To: Daniel Wagner , James Smart Cc: Keith Busch , Christoph Hellwig , Sagi Grimberg , linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org References: <20240404144131.17988-1-dwagner@suse.de> <20240404144131.17988-2-dwagner@suse.de> From: Hannes Reinecke In-Reply-To: <20240404144131.17988-2-dwagner@suse.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Action: no action X-Rspamd-Server: rspamd1.dmz-prg2.suse.org X-Spam-Level: X-Spamd-Result: default: False [-4.00 / 50.00]; REPLY(-4.00)[] X-Spam-Flag: NO X-Spam-Score: -4.00 X-Rspamd-Queue-Id: C17D337AE7 On 4/4/24 16:41, Daniel Wagner wrote: > The RCU lock is only needed for the lookup loop and not for > list_ad_tail_rcu call. Thus move it down the call chain into > nvmet_fc_assoc_exists. > > While at it also fix the name typo of the function. > > Signed-off-by: Daniel Wagner > --- > drivers/nvme/target/fc.c | 17 ++++++++++------- > 1 file changed, 10 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, Frankenstr. 146, 90461 Nürnberg HRB 36809 (AG Nürnberg), GF: I. Totev, A. McDonald, W. Knoblich