From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 0635022DA0D; Tue, 20 May 2025 19:55:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747770920; cv=none; b=UGCNoEciDroXcXjjyzdLJWJW3mvTfN9ha8avj77EB3JrbP3lOpAXhYey9VMJHGN/WYhNyOj4MDMlJk2tp0CcUJJRsX0AH2lg1RQapJGUhZ19ERDnhqgLgvsgvy2OKnePZyD9XCdW7iKThCVIaWP4DlLNGPWEI3g2ND/TybGRN7Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747770920; c=relaxed/simple; bh=ZNSZ0lf1NtFAeFpBiDde6SrjLyr3Y8FHLGwvbVWFeqk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=W7ictcUS3Aqyb4ELviE8GjfjqOcr7ObUggLLoHybwqD/sH/6thI35TpVsKcst/tu6HnXavfa9mehQdAvjeL32a3Lt/+dC/Iwp97o0asUhz6wfLeW5EryApMxFult15RmCCi9CoPQzAwjZ1w+6UuZYm+58M94FKsgkX0tRr/um+Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=tB8dLcXb; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="tB8dLcXb" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EBEC3C4CEE9; Tue, 20 May 2025 19:55:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1747770919; bh=ZNSZ0lf1NtFAeFpBiDde6SrjLyr3Y8FHLGwvbVWFeqk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tB8dLcXbWS9dWq+3X8kN3s/W7Hd0YRg5oYqf5pLgRW/fppQlc+W/E761DUmj+Zrnz 4TPle1CeLTiIHtxbZnfUSBq9G7qWgiSxIaZp+Oiyw8MBULLEAQtoNvwSxoHwvoBqNp 14hG/JXiXOfXOdb0lY9v//K8Yx4RcO/lTxi0e8nb/R0N/HBwLU1yKxk49DrW+WUHta TlHuUk+maZUlQH5/Z/NF8hIvp0/UfcXquvIb+ZvoOgzjuEnZ1L6YkHd3oOb892iBVH DV7d0mBZFpt3cymJzSpvZ4Mopdgotebk1VnX4RT8v/7VIuLPx/lQEbVyP8EU95upgc yGrJRn/8s5oXw== Date: Tue, 20 May 2025 22:55:15 +0300 From: Jarkko Sakkinen To: "Reshetova, Elena" Cc: "Hansen, Dave" , "seanjc@google.com" , "Huang, Kai" , "linux-sgx@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "x86@kernel.org" , "Mallick, Asit K" , "Scarlata, Vincent R" , "Cai, Chong" , "Aktas, Erdem" , "Annapurve, Vishal" , "dionnaglaze@google.com" , "bondarn@google.com" , "Raynor, Scott" Subject: Re: [PATCH v5 1/5] x86/sgx: Introduce a counter to count the sgx_(vepc_)open() Message-ID: References: <20250519072603.328429-1-elena.reshetova@intel.com> <20250519072603.328429-2-elena.reshetova@intel.com> 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: On Tue, May 20, 2025 at 06:25:04AM +0000, Reshetova, Elena wrote: > > Maybe just use raw atomic_inc() and atomic_dec() at the sites? > > > > IMHO, it makes only sense to wrap, when it makes sense to wrap. > > You mean for this patch or overall? For overall we discussed in v4 > why we would like to raise it to atomic64. > Or do I misunderstand your comment? So I was thinking whether we want wrappers but I guess we can keep them. > > Best Regards, > Elena. BR, Jarkko