Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3351837yba; Tue, 16 Apr 2019 09:35:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqzbBHXNWoNJ/fdLaVLBrwYFmSssihihCPNg943KJfJWcnsYRaNJXHW/2oORMVN9cJcpS3XJ X-Received: by 2002:a62:6086:: with SMTP id u128mr84182821pfb.148.1555432555132; Tue, 16 Apr 2019 09:35:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555432555; cv=none; d=google.com; s=arc-20160816; b=k5qdYhEVD/nuKyU0qcnDOlMQwij/RDNOt81FMGz7TRh4zgUkfs/xU8VbB91e+pDH+m cM4hYQ0/bQKk1xJSOCR7w10rUXQma3XZVDaqUv5BVkf20j12axfem6eki/DsmSDUJo5v V3x7GfGbKc26ow8RUsGvWvw0/PK2o1VlJp4lOpnwvR8s4jAlduf8VFWTAcy3L9D45yuY H1DJ3cvNvYnjerzVdIfRRJTx7yIrPX/Nh0yIf/9eXZXurXyjm51VEE6Pg6c6CbwHz2b2 KMsu9sjlEqvYVeC4YL59MIOJlkbO7btLUzKQrjMqFDzJvDI5TxzreralbRPVb7yZgfAj Dh1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=dpOp2rCFUHLqbHciyTTI8wfp5HqQC2Cnpfqou9WcUjs=; b=b8Oui2f+iNPUyK2SOMvp7s30QOrUgOZnvzXoWqNk910GYI4gKZOE7/6fyUfRHy41Mc hx52MKeY5Z6wDD1cB01F/nD0CsX/aynWCq6Hklq1Kp61RWCeWpGx9DijA+My74zvXskK 88UYk7POtW2ZMzzNU+U+1zmEAL12qFoJS2rzhUZCmfg8hUY4orlnm9qSHCq+ZB62jzPw kYClhk2uPQFofUqJ7va4fT2C1xCYBIwSMZkp34olK7ATOY1wVRpx+L/ssTRZhL3wqfr4 ZLyjjmM8jhW2r55DYQ5BuxAo4bNprSO7h49ETZUL9TF3G8+hh1U5dTbq+NKZ8Z3C0QxZ wWjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=SoQnVirB; 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 u69si19011597pgd.176.2019.04.16.09.35.38; Tue, 16 Apr 2019 09:35:55 -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=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=SoQnVirB; 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 S1730132AbfDPQdW (ORCPT + 99 others); Tue, 16 Apr 2019 12:33:22 -0400 Received: from mail-qt1-f193.google.com ([209.85.160.193]:32803 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730118AbfDPQdV (ORCPT ); Tue, 16 Apr 2019 12:33:21 -0400 Received: by mail-qt1-f193.google.com with SMTP id k14so24059901qtb.0 for ; Tue, 16 Apr 2019 09:33:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netronome-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :organization:mime-version:content-transfer-encoding; bh=dpOp2rCFUHLqbHciyTTI8wfp5HqQC2Cnpfqou9WcUjs=; b=SoQnVirBrLyp7uUb92BbuvnSFn+szPq8SjzT48x1lwjjc+jFyHGzW/inl4A7pwiw3E Tq0fJc+BM/PLE3smpnaI+/e5ofnJbDywWOkywWnR2cfj7qJjlezDZ7szuTRiHy1EiIax iikadhZXL8rjjH+puwgMo9Yg4fAnOU6U83Biz3stuEY4nOyw9aAj6YF2fzS0mBIcHglH ZcutS43AWKk2HjJjdH0e3KeNwyQP5Fngk2VhgAucy+UB5O6StxDAvp3NoG+JP9wsJ6Yc Cz6nh5CnFZ/3r+T9fbQn+gODabOUSf90YXjR0dXyUh97ox2wC97abJ4AScvYfDft8Fxo +hFQ== 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:in-reply-to :references:organization:mime-version:content-transfer-encoding; bh=dpOp2rCFUHLqbHciyTTI8wfp5HqQC2Cnpfqou9WcUjs=; b=LuAslPiycFg2z/ezg5YcT822BpidbVsez1k1JNnPY+CVOfMPE7kVS43OlMBS8UOJjr r+e0IV0mDJA1TU0vieAOIX5aQ2B0xJAh2DdYw1ixzTpHd9ZYHXwdDrbQwnr0+AVOmMNJ qPxNbg3gMBMl53NrEZVvMBoFxUUrxCXGenaThFkLQ7vk88DZTKBDSfkrMOc53ptFU9Dy nnxR7fLDYKV+LvaOB6q1B1MdLBuJy8rPXxOPI7bOmJbr0I5660c9LeFDt+TrAkvaDYEZ LEk0tfYLxM7IZ4nbIP7EFkvoqQJZ5zRsVTmjvGFhKQSi8+lqwTRKAUxRP7zfSC9Zbv0j a04A== X-Gm-Message-State: APjAAAWAJ4/e1LBF/PQWkPMgWM4fJUneMPmY36C02gfpk9/IVSQf5+T6 vq/0jF5gtLB7D9IN9v0ENAbzzw== X-Received: by 2002:ac8:27b0:: with SMTP id w45mr66414745qtw.341.1555432400352; Tue, 16 Apr 2019 09:33:20 -0700 (PDT) Received: from cakuba.netronome.com ([66.60.152.14]) by smtp.gmail.com with ESMTPSA id s17sm34367198qtc.15.2019.04.16.09.33.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 16 Apr 2019 09:33:20 -0700 (PDT) Date: Tue, 16 Apr 2019 09:33:15 -0700 From: Jakub Kicinski To: Peter Zijlstra 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: <20190416093315.4f8fee4f@cakuba.netronome.com> In-Reply-To: <20190404102902.GW4038@hirez.programming.kicks-ass.net> References: <20190330000854.30142-1-jakub.kicinski@netronome.com> <20190401112153.2f9e87ba@cakuba.hsd1.ca.comcast.net> <20190404102902.GW4038@hirez.programming.kicks-ass.net> Organization: Netronome Systems, Ltd. MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 4 Apr 2019 12:29:02 +0200, Peter Zijlstra wrote: > 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. Hi Peter! I was initially hoping that a1247d06d010 ("locking/static_key: Fix false positive warnings on concurrent dec/inc") may go into 5.1, but it's not really a regression. It will conflict, so the net-next route won't work. Would you be able to carry this set after all?