From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 62BC5C433F5 for ; Fri, 11 Feb 2022 17:15:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229628AbiBKRPm (ORCPT ); Fri, 11 Feb 2022 12:15:42 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:38072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235254AbiBKRPl (ORCPT ); Fri, 11 Feb 2022 12:15:41 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BCEF102; Fri, 11 Feb 2022 09:15:40 -0800 (PST) Date: Fri, 11 Feb 2022 18:15:37 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1644599738; 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=PJyDYqDoqp3BOO8EG/GCK9HSjsIr9kXicPv+GzkWx1A=; b=ebryZ/ovTvyftldBlOHY/pFQryX7LYnwAp4COiGEEXAX7bZl2X1U4ggtgMm4IPwogJ8toy GSUNkza8AaP8Yn/i6tGZT2ymAVH5ZuvHGdB9K4qxneXQX6fRAwgS8AeduKqqxWwSmvw8bk v/O4GBNF0aO5TjJjeTSk5cm2/RNzdVmmkeUUKRy0/SwB3+ok20thXVpcwPBNTuVxG1Odlm c7u1rFkpksOSdHqFFBPhcxQhLLeZ+iBK2hF67Gvm8oHlUSO+CGIKz6QIm0xKZ7+tyExyom 9tBj7VUN+q9bf9D/8el8jUwESzTm13y2/Jq8vNQnGeVtzvPKjvy2YAAGs8QCJw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1644599738; 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=PJyDYqDoqp3BOO8EG/GCK9HSjsIr9kXicPv+GzkWx1A=; b=0CWjWOEnQbWaB3Z4tTafewf+JVbcOzU/wcNrqdku2B6LXM7m5MNTlF6sBPbTCy0zz/9/xV YQ9T13Gvj2NipCBw== From: Sebastian Andrzej Siewior To: "Jason A. Donenfeld" Cc: LKML , Linux Crypto Mailing List , Thomas Gleixner , Peter Zijlstra , Theodore Ts'o , Sultan Alsawaf , Jonathan =?utf-8?Q?Neusch=C3=A4fer?= , Dominik Brodowski Subject: Re: [PATCH v6] random: defer fast pool mixing to worker Message-ID: References: <20220211162515.554867-1-Jason@zx2c4.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On 2022-02-11 18:00:21 [+0100], Jason A. Donenfeld wrote: > Hi Sebastian, Hi Jason, > On Fri, Feb 11, 2022 at 5:59 PM Sebastian Andrzej Siewior > wrote: > > > Okay, I'll do that then, and then in the process get rid of the > > > cmpxchg loop since it's no longer required. > > > > So the only reason why we have that atomic_t is for rare case where run > > on the remote CPU and need to remove the upper bit in the counter? > > Yes. That's the only remaining reason. Annoying, but whatareyagonnado? A CPU hotplug notifier which removes unconditionally that bit when the CPU goes down or sets it to 0. We can keep it as it. Just an idea for later maybe ;) > Jason Sebastian