Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4907649pxj; Tue, 22 Jun 2021 10:35:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwQfTyPRT9w5DfYOsMCfrykUT+L6fxwoyOfLdfn9esZgHm1e6NUbff4mjRXOMvTTALRY2FU X-Received: by 2002:a6b:510f:: with SMTP id f15mr2166318iob.10.1624383301135; Tue, 22 Jun 2021 10:35:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624383301; cv=none; d=google.com; s=arc-20160816; b=P9ZAxw+QJ9v7CnicDx6V8HqtmaMdXzxw2nt3WkcG8RxKcRFu3PRG0klgwx1gv1Uduc R2ZQVPFflzxlBB4knZTDnbMmk+Ak8NMtca9GtQqCTYfCbDRpmQWgjEesb31NcgfrcQzJ nQfDlaTtEV5ystxIGSK8NpzZSut9Z7lzGZA2Zho+TWaqu08HHYQpwg6pt0kyTfmi2XVD Dob7CopG/QxxdwR0IHYq9iXEjcb0bM9iF2O1My7OQW4kWaD0+rvTeOlHvIKWAgxqTT3Y OHIwFvdJ5N9A8GAZQIWinmkJJ9bltCxx6PyFT8oW8BBKjXPEN6cAQp3XVQMvWE6ybAi3 72QQ== 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:date:dkim-signature; bh=fprW9and+W4ZesgQO5v/nl41G796IELnfkI2rFtS/Gw=; b=hJ4GoCRNSwz+AonQ4ZkpQmm+/wwMv/K3A0DI1si63mTyGrFg2WmiJsf7KBLhDpjbAd n67G7pGvuHi/9YIYs5aa9MJagrgEhAVN4VORmMCn3lXI//OcVcGW2H8bS3NanjrSdnP4 pgXRJ/rgv5wpnI+rVGIUpdGXvf/8aLYY5LxeaGDTwLbFsugKVqF0j0eMTZtXVp7+xus9 Y+Q3uICp+Y1b6/NFuOI3dU7cKBY85tA/brS6YRPkK52mkbhSiXCU72WS1rx4Dnk7ZLsz Km9MzHSb0olSrrPmphGk4FzUx9ZPT7MQAlQ5A14Wb6DALp5hiD9E8ffYk/0+sJ6Xs0nV CDUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=CE4y9crA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c4si10961719ilk.14.2021.06.22.10.34.47; Tue, 22 Jun 2021 10:35:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=CE4y9crA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232058AbhFVRfp (ORCPT + 99 others); Tue, 22 Jun 2021 13:35:45 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:26761 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231572AbhFVRfm (ORCPT ); Tue, 22 Jun 2021 13:35:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1624383205; 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=fprW9and+W4ZesgQO5v/nl41G796IELnfkI2rFtS/Gw=; b=CE4y9crAyzrdrLW9yhwhONvwNwRbvoqfuHy6sU392JzjfFaEJQ1cDdTSbTvrphYiJlh7Sg kbFw98WSLAAOzmXkUW/OGSVOZqbiARuFrEZ4zdgNYk4ivT4FjDP8LPRuFxAVmmqPHm01nK O1l8xDkDvmIfgQM1ekzzgl77XqUkHyc= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-554-RBUTUrtYNc2iZKPafJtGDQ-1; Tue, 22 Jun 2021 13:33:24 -0400 X-MC-Unique: RBUTUrtYNc2iZKPafJtGDQ-1 Received: by mail-wr1-f72.google.com with SMTP id e9-20020a5d6d090000b0290119e91be97dso10039222wrq.1 for ; Tue, 22 Jun 2021 10:33:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=fprW9and+W4ZesgQO5v/nl41G796IELnfkI2rFtS/Gw=; b=Wn3TfcqHNMRvVevLmAxoJukdc6c+UCNQdxmhYC73/G6cbFPHnXV/qR+hu7/agH6blF XRfQZT1Z2qIvil/f3BGwBJQhksV/dXkTvl1/e1Zazmbi5pzqYOUFA6XUm1erJUKsQ2cd zfO6WTFk9Ik4Fb7bRLjp6YsuYYv+m8GxfInH6i9kbZycr7u9nGzWB2FiEY2sOg7L5+4x iZB9mCTttkXzJfZO7hyC5GUoMruIaHPY2ihco8sDD+l0we/Y3/FbC8krsarrX72YWc+a vaI+inz3qmivYRsUkQbkziYw5cEi79mssfcfHD5HDl9KjSQIPTWWTdVGAZBchdD/4DyR Ulnw== X-Gm-Message-State: AOAM531tAE23nFC/+BPr2+je3qGJti3Bh2i8eMNBwd6V5LKWodneF0gm tJHhKkem+Jf4qYTlvLR6NzxovpTaQgjFAvp78SU2WtVDGlpIr/mdRbZI38p08986IBxo2lscspE HRF9CX0gn3b8Cr6Ii8nSH1yjS X-Received: by 2002:a5d:6485:: with SMTP id o5mr6180818wri.91.1624383203297; Tue, 22 Jun 2021 10:33:23 -0700 (PDT) X-Received: by 2002:a5d:6485:: with SMTP id o5mr6180808wri.91.1624383203169; Tue, 22 Jun 2021 10:33:23 -0700 (PDT) Received: from krava ([5.171.242.79]) by smtp.gmail.com with ESMTPSA id v22sm2915055wmh.40.2021.06.22.10.33.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Jun 2021 10:33:22 -0700 (PDT) Date: Tue, 22 Jun 2021 19:33:19 +0200 From: Jiri Olsa To: Peter Zijlstra Cc: Thomas Gleixner , Nicolas Saenz Julienne , linux-rt-users@vger.kernel.org, frederic@kernel.org, mtosatti@redhat.com, LKML , Jiri Olsa Subject: Re: [RFC 2/2] timers: Make sure irq_work is handled when no pending timers Message-ID: References: <20210610125945.558872-1-nsaenzju@redhat.com> <20210610125945.558872-2-nsaenzju@redhat.com> <87mtrmeqon.ffs@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 22, 2021 at 03:44:23PM +0200, Peter Zijlstra wrote: > On Sat, Jun 19, 2021 at 12:47:04AM +0200, Thomas Gleixner wrote: > > There are two solutions: > > > > 1) Create a IRQ_WORK softirq and raise that > > > > 2) Simply delegate it to a workqueue > > IIRC someone was looking to stick the whole thing in a kthread_worker. > Jiri, was that you? > yep, I still plan on doing that jirka