Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp513679rwb; Wed, 5 Oct 2022 23:57:42 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6w9A7lwa/3dkz0p8qp7S+rUSHebscdFQMw1r9GCclO6IBY1pdk43T7y06K797VhHuo9o0l X-Received: by 2002:a17:907:a050:b0:78d:1bed:8903 with SMTP id gz16-20020a170907a05000b0078d1bed8903mr2660711ejc.735.1665039462309; Wed, 05 Oct 2022 23:57:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665039462; cv=none; d=google.com; s=arc-20160816; b=Rljw/HGBSusoyBXxp4P2GXyVS3dNb6R2ixJDiIkxHcNhDqCCtf7P+O9rY6mrmFL+7F u5z62Rn4K+iFhAKGjIgAmMmao3q8cWukoj9fxMKSKXigjJZKQ0NvIdntHHoHcZBmv1CI Qtur9cpki7AC21q46/1eZ+UpjOZ7+TWNfQRmj4u2GmcpqVuRiDi3WRAnas9M/5LS8yup mufxKIsQc03oHH+m+JIrDqY//7bwPR/wjPmmRbX7cVy0P/h2vBfb5joHcrcJKB82PGNS Bk5T8B81IKbARoJXSDjUKnjDO5F9RZ76mPc2tX3yXD0htoaV+Vp2s44JZ14oyb+LTChD DJtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:dkim-signature :dkim-signature:date; bh=0EvcY12akHbBMuHyFiQ/dz49uFOmgCXQuCdnSEWvOeI=; b=FjMee4oFV2qNUviI+TFLR2OwwLWwJRyDF1CjA9j1hH3owWcY0g8r3O2WwfYqUvGoPJ AqUtnHGOBtwa9sfOaanogruVXI0YmzytAcKHfyqUavuyMbkk4X30OOt4ZnSoNEexXjax AtL++6IyLiD5cHS8JdKBq/BxnBNQcQAT70y3rkgnUcS4KfXF2NslKn+Kaowtuk4ynOK/ oZZEy/jxI2yunLldWGJRdpTzUJKMG3WKHsBSyN5S6/2oeZHtW9D064mqR+TWmHWlNmb5 6VE0aF13geAs/k8sR7CUQ3cEyhcsPeIXJGEle4ldMccuAk77uYShZIFoVPqv51AJja5n JXeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=tcjwFrkH; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f11-20020a50ee8b000000b0043d15f43ab2si14212305edr.580.2022.10.05.23.57.08; Wed, 05 Oct 2022 23:57:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=tcjwFrkH; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229844AbiJFGqd (ORCPT + 99 others); Thu, 6 Oct 2022 02:46:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230128AbiJFGqc (ORCPT ); Thu, 6 Oct 2022 02:46:32 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB0BD8A7DD; Wed, 5 Oct 2022 23:46:30 -0700 (PDT) Date: Thu, 6 Oct 2022 08:46:27 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1665038788; 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=0EvcY12akHbBMuHyFiQ/dz49uFOmgCXQuCdnSEWvOeI=; b=tcjwFrkHdzvvH91jeJZS4dgO5lcvpV6GSFGLZuSGCERs7TtCblTyJvKN8M8b7ZL/tjzllY uT0DjCjjEJSHGXVCJnih0QhtMsey2NASLqUYpi/jJ4WCul5PHAEDEeVhsOYvqb7aQeUqRj okLJO8pce5TBfzC9OgfOpIsYKPaZFKk4himhP6vZSubo6rXphS2k/ohibwpD5Oapb/6ySW ExQURIzwkztQKTD4OIX4rmBjUeKYfiTIoET6dya4JJAamWSa4JQg/SxCMkk1tKhMz6p9Ya HP2N59cq+TLyh3qHprA6hcN6Q1pDSkB492XbXhDtNniFNnR7En//hvTuVH1s/Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1665038788; 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=0EvcY12akHbBMuHyFiQ/dz49uFOmgCXQuCdnSEWvOeI=; b=eDSz1xb5CBft1AXQc1oiUkwTchoAC6ZuGGcQiJxj/+7KyAtY9Ti47B+J4smGNgmJUOZ/jx i0WtJi0s5tmlCqDA== From: Sebastian Andrzej Siewior To: "Jason A. Donenfeld" Cc: linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, Dominik Brodowski , Sultan Alsawaf Subject: Re: [PATCH 2/2] random: spread out jitter callback to different CPUs Message-ID: References: <20220930231050.749824-1-Jason@zx2c4.com> <20220930231050.749824-2-Jason@zx2c4.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On 2022-10-05 23:08:19 [+0200], Jason A. Donenfeld wrote: > Hi Sebastian, Hi Jason, > On Wed, Oct 05, 2022 at 07:26:42PM +0200, Sebastian Andrzej Siewior wrote: > > That del_timer_sync() at the end is what you want. If the timer is > > pending (as in enqueued in the timer wheel) then it will be removed > > before it is invoked. If the timer's callback is invoked then it will > > spin until the callback is done. > > del_timer_sync() is not guaranteed to succeed with add_timer_on() being > used in conjunction with timer_pending() though. That's why I've > abandoned this. But why? The timer is added to a timer-base on a different CPU. Should work. > Jason Sebastian