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 lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (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 92A66C74A5B for ; Wed, 29 Mar 2023 12:25:18 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4Pmm3J6dJZz3f92 for ; Wed, 29 Mar 2023 23:25:16 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ellerman.id.au header.i=@ellerman.id.au header.a=rsa-sha256 header.s=201909 header.b=oQL+68HV; dkim-atps=neutral Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4Pmm2P16G6z3cLC for ; Wed, 29 Mar 2023 23:24:29 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=ellerman.id.au header.i=@ellerman.id.au header.a=rsa-sha256 header.s=201909 header.b=oQL+68HV; dkim-atps=neutral Received: from authenticated.ozlabs.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 mail.ozlabs.org (Postfix) with ESMTPSA id 4Pmm2N17r2z4x7x; Wed, 29 Mar 2023 23:24:28 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ellerman.id.au; s=201909; t=1680092668; bh=Z+hrXiJ2cNlBmfdmmROKJdBUr7noF3o6UBJE5Zse75Q=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=oQL+68HVSewYXO8Akb+fstLv5B3IplNs/mtpgtglt/cBMIMlNiUtHNNGU7h2oLkLQ paLTR0HdkUwlMXqcT+qslXPdM25Ea3csCTxy4N5x6JdMZlX+sQf7HL2B0t2xrRD7Ud ATj2DZPuybl0dq0tiiIhmB/Xt0+QXTyF7k8o4p4dynM4OIMmyIZKb4A7kMgyfSQYkn r9ZuvTXTpI2NrIvrSDnUJ4oZkXPds9797kV4vnbxNlILyPM0NRqheLd5bneltZnwfL FZmkww+fCEqiR33Qsk3YGNHl61Vt7oy4bGik4jb29+3T6RNr/UWM9gUnrShE3J6w36 GZ0YRAGREGwiw== From: Michael Ellerman To: Nathan Lynch via B4 Relay , Nicholas Piggin , Christophe Leroy Subject: Re: [PATCH 5/8] powerpc/rtas: rename va_rtas_call_unlocked() to va_rtas_call() In-Reply-To: <20230220-rtas-queue-for-6-4-v1-5-010e4416f13f@linux.ibm.com> References: <20230220-rtas-queue-for-6-4-v1-0-010e4416f13f@linux.ibm.com> <20230220-rtas-queue-for-6-4-v1-5-010e4416f13f@linux.ibm.com> Date: Wed, 29 Mar 2023 23:24:27 +1100 Message-ID: <87wn2zbv9g.fsf@mpe.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Nathan Lynch , Tyrel Datwyler , Nick Child , Andrew Donnellan , Scott Cheloha , Laurent Dufour , linuxppc-dev@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" Nathan Lynch via B4 Relay writes: > From: Nathan Lynch > > The function name va_rtas_call_unlocked() is confusing: it may be > called with or without rtas_lock held. Rename it to va_rtas_call(). I'm not sure about this one. The "unlocked" is meant to convey that it doesn't do any locking. The caller has to be OK with that, or do its own locking. Andrew is right that the common naming pattern is foo() that takes the lock and __foo() that doesn't - but I agree that's not very pretty. Can we just leave it as-is? cheers