Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1060959yba; Thu, 4 Apr 2019 03:30:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqwGVwItlnX/ttEVTWoni7h9vrVYbi0hmVc6yAgUJ7SscgmajTnj5IrhPDIPfoNddDbGI//Z X-Received: by 2002:a17:902:4681:: with SMTP id p1mr5572551pld.42.1554373818769; Thu, 04 Apr 2019 03:30:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554373818; cv=none; d=google.com; s=arc-20160816; b=r8NYI+AtzK4uOLczIZEylQ27lKenAYtFFaUr8b/NWQnQu0LYDI5aNPokcDZNopo/VZ vrIOZVghrdCgPTlXeQvFNXsWZ3MoColsY3Uu1ZFTJQ3BARUUjJz7mOPlS2X/ODQ3aunh MkQu9ZgDJItFMKd9PPaPZB3p9ihWcgVwVZxGP0Sdkw/rtG8/Gu7bEU3qkeLpGKsotb5C SkEHNHici8lA0z6Xquwz2aiqY4wvdf6ETUhQksDJJVQAPi4ckyVs8BnY6M8a4uO/eFfp GIE1qyQskDgxsxqsnc9qolgrzIInAyrfo4lY/yFCjKfEGQ06x3dplQ4TkVftTtvWZmBe 0MWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=bUfVMNqb74o/rYZDWwpLqrNml2glBxW72FelcAS65tA=; b=mv4duua//xEf1EjydSfbsfHc3+X5e9Qe3CN/6A8RXUh7LrWinoQwuVZiwWaQlPJzbi wWJU09a3CGbXJPUpmitCpI7afhrOskn90IHQwt++9L0p7YjQkWXP2dSbnsUJrERUBxsD gnR2mp4f7iCBG0PV19TLWCAjRo9TD0Wf/4lZ6EurmM3J6GdcQb/69gqI2lvp04mgw6Bu Ox2gplbwbdGGTw0bRmVHu83Otc2DnKQg6lS+FvgO8S7QmZE4vnLyR9tkROkUFS3V7uCo 4vig7lcQKmYmJnCOTfg9i2ye+MVngikGgAC2q89/UAuar74cNudQMyCbz0q3wvToBguf zTgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=o7edWMP3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l10si15841036pgm.20.2019.04.04.03.30.03; Thu, 04 Apr 2019 03:30:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=o7edWMP3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729459AbfDDK3S (ORCPT + 99 others); Thu, 4 Apr 2019 06:29:18 -0400 Received: from merlin.infradead.org ([205.233.59.134]:54188 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728526AbfDDK3R (ORCPT ); Thu, 4 Apr 2019 06:29:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=bUfVMNqb74o/rYZDWwpLqrNml2glBxW72FelcAS65tA=; b=o7edWMP389+IuSXaCKcEix3er 2FIU70Sh7JZZEJblsRDqKD+0tpBFEc6fdYe2kkwMGPNGwbV33r797aTEV+vP3ZD3SUTTLdDUKXoMa /+giyf3M95ZvvendMK2flJ0+NQxsp+Kk7G/tN+GEv0ltRsKD8iIxHsdjFog9QiGW3I66kdFYsasLs ds6Roo7gZDIANll0ceNDVkUvlq/F1Y8SMlTWGye/y7nbb4uQIhUk5EBFaU/S8tbvdEi8lZSb5U7jT iab/uaZ2H/hkvCEqshwI6cMfTIcVGwyz2hiAOwDjH8IsVQVZnN0Xy4yE9u9JOTM85C4skr2k+Cs3T galdYipmQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1hBzcG-0002q1-GM; Thu, 04 Apr 2019 10:29:05 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id CB66E2038C23E; Thu, 4 Apr 2019 12:29:02 +0200 (CEST) Date: Thu, 4 Apr 2019 12:29:02 +0200 From: Peter Zijlstra To: Jakub Kicinski Cc: tglx@linutronix.de, David Miller , ard.biesheuvel@linaro.org, yamada.masahiro@socionext.com, mingo@kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, oss-drivers@netronome.com, alexei.starovoitov@gmail.com Subject: Re: [PATCH 0/3] locking/static_key: improve rate limited labels Message-ID: <20190404102902.GW4038@hirez.programming.kicks-ass.net> References: <20190330000854.30142-1-jakub.kicinski@netronome.com> <20190401112153.2f9e87ba@cakuba.hsd1.ca.comcast.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190401112153.2f9e87ba@cakuba.hsd1.ca.comcast.net> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 01, 2019 at 11:21:53AM -0700, Jakub Kicinski wrote: > On Fri, 29 Mar 2019 17:08:51 -0700, Jakub Kicinski wrote: > > Hi! > > > > This will be used to fix the static branch disabling in the TLS > > code. The net/tls/ code should be using the deferred static > > branch type, because unprivileged users can flip the branch > > on and off quite easily with CONFIG_TLS_DEVICE=y. > > > > Second of all we shouldn't take the jump label locks from > > the RX path, when the socket is destroyed. This can be avoided > > with some slight code refactoring in deferred static_key as > > it already runs from a workqueue. > > > > This the series (and a simple tls patch which makes use of it) > > applied opening 0.5M TLS connections to localhost (just calling > > setsockopt, no data exchange) goes down from 37.9s to 12.4s. > > Once/if we get positive feedback from locking folks, would it be > possible to merge these via net-next tree alongside the patch > converting TLS to rate limited branches? Looks good. If routed through the network tree because usage there: Acked-by: Peter Zijlstra (Intel) Otherwise let me know and I'll carry them.