Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp177754lqt; Wed, 5 Jun 2024 23:22:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWrcLPyeCTX8G7RDxRiE/bZps9FQP8QLslMhYq1gYUUy0kCthx955AMK/kqsisG7lCqJwmxdfIydRs2eumI31db1cMP7vbDoydf5eCteQ== X-Google-Smtp-Source: AGHT+IFlCHboUi52IrQV2Ag9dLkldxzrJ5tj1mTG3tKbmdmhP57xYFoD6Eiv6e1O1cG9k6NUuT+c X-Received: by 2002:a05:6a20:2588:b0:1a9:6c18:7e96 with SMTP id adf61e73a8af0-1b2b6f84f0cmr5204003637.19.1717654972179; Wed, 05 Jun 2024 23:22:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717654972; cv=pass; d=google.com; s=arc-20160816; b=XemSGyvEQzETHrcDg3Zr0r+S6cdKFC+RcmlQpVnKLIejXQ5Rou6cszuMVxw7no0Sr4 GnP2y7lWVIYjxvYEt9zkhkUYrCbu3G2uGxgI+UQMvwJHNFx3levutmltQhf1jq/kpIh8 oFV+YCTmki5X29m7plquefACRDsCJK3nlgcSXuAXET1JRKFVnGO17nYHNdTPe0RaPK3z QBhjhDzy70wXIQhqaaVY8di0RRKTsvsimyz+MStmHh5NXbdtGsd7rRYqybHnSfAZlFpn Xbs6xkpVvAIzyQWZUoSN6UGX9lxZC5QKUF1Wv8Cm/tnOap+vLjAvnKguIakoYawHE4jD U6pQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:dkim-signature:dkim-signature:date; bh=PZbspwahrReSiEYm4PJOvgqOfbLgJT+v5PtwhKLRS5Q=; fh=32GjBADb6MfcAIVoskYq+7+i1lTCPR8oHjnsgN8BQTs=; b=vFnKwpROjwD+otPDCqCHqORkhBk0PJl87SzEJr4+QUg3y0KgfzIpEASHF1wXF/z2Ib NrN21i/QXvKd202ATuuC7ljp6u7VALdSZj2ZxfZwRHO0+uAuypFVtvVn/WUVNRZux+NZ HorIhbOobRmvD1cBNRD6rqcI6ePsy+JgkUgtWJJCtSMOUfnFvoY08WMulCyl/AdQCJ40 cD7EgIJJPp1+7IN20D3ej3OXVaVStY03eDIKsvc8tEey+lqVcHaCzFXTFDkJ6hY1ILDi ng//CpjIm44ebQhRK3hPnd9KfbWPOetSJDTBr1mrOejaf0aJyk0+ZR1O8VDDFhCEn992 ZXsg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=vRU+Xrt7; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-203650-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203650-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f6bd7601aasi6379325ad.96.2024.06.05.23.22.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 23:22:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-203650-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=vRU+Xrt7; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-203650-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203650-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id CC594283294 for ; Thu, 6 Jun 2024 06:22:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D2D457346A; Thu, 6 Jun 2024 06:22:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="vRU+Xrt7"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="87c6PaFT" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9345019D8A1; Thu, 6 Jun 2024 06:22:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717654963; cv=none; b=hoVqeyGfAU4yVy/PTgn4rb/VZ0A5eENWvbXTigjr8PMUV6x4uewk0WXkepQVRTfDCm7ACIz+pSM9WpG5CFNdE/ST2crkVfnDAgl9/p+s+IluMmb/IHDSJkSKnZ+kW3y64owvlk0TKk4c+W1ysz3QcwvP8cXmWSZWfglWhhuoyv0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717654963; c=relaxed/simple; bh=yB68uGLMaXT1YV1sbSThDoviU8YPb91HeMCIZFMJbgQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Q5XHAo9y54YWFsAGRBGskg9sW5zErO3qIF4Xkj3tVV1kmFSeTAyeVF53T8XBCFP5CRF2Hcap1MIai0dQDLigYATWiOk2hhHg2wKkorK/QWPUIfW8mRhdNtAuM9iJgBPC0Wj3DQAg350XZ90oBYZ2EkOvUShhENqtZhWmrKUbKHE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=vRU+Xrt7; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=87c6PaFT; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Date: Thu, 6 Jun 2024 08:22:37 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1717654959; 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=PZbspwahrReSiEYm4PJOvgqOfbLgJT+v5PtwhKLRS5Q=; b=vRU+Xrt7qfOQCVY3ghd5wShqMojUHU2Scch7McyNsNbBycPTimJzgb6hrCTrgzVo7gFnz/ QZk4QInUEfFvPtfRmmtRiqpg5A/OIt0TKgiNuxH/kpoIb8HwswgOyZXem1kgjMyGo/BePo YI1RJkl8x8xGJVUcitI9rr7YRzaAUmR7hL9z5sLsFExOTm8NL5PUXmihuTkrp6wa86iSJF LFIyn73IDnn71pcppGenwuIvJK7tbBPGXDll1jM9JDH8wpu/TCGuXDuG7/ztVh4gKKN1zz J7+LlDKVGCEJWxJXgw1M/AfM2WhWzFqQFtdeHFOVGDsHN/jhY3McCXoBiTI3QA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1717654959; 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=PZbspwahrReSiEYm4PJOvgqOfbLgJT+v5PtwhKLRS5Q=; b=87c6PaFTSzuOuHDnarqFAleF2KS2afdlq8GLhiwo1iPMdlo3lj4MrafLsYp7Ao1MqnfWLZ izXGRThGBs4B1KBQ== From: Sebastian Andrzej Siewior To: Jakub Kicinski Cc: Andrew Lunn , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, "David S. Miller" , Daniel Bristot de Oliveira , Boqun Feng , Daniel Borkmann , Eric Dumazet , Frederic Weisbecker , Ingo Molnar , Paolo Abeni , Peter Zijlstra , Thomas Gleixner , Waiman Long , Will Deacon Subject: Re: [PATCH v4 net-next 03/14] net: Use nested-BH locking for napi_alloc_cache. Message-ID: <20240606062237.nuBoHreW@linutronix.de> References: <20240604154425.878636-1-bigeasy@linutronix.de> <20240604154425.878636-4-bigeasy@linutronix.de> <20240605195420.2f47e6a1@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20240605195420.2f47e6a1@kernel.org> On 2024-06-05 19:54:20 [-0700], Jakub Kicinski wrote: > On Tue, 4 Jun 2024 17:24:10 +0200 Sebastian Andrzej Siewior wrote: > > @@ -308,6 +311,7 @@ void *__napi_alloc_frag_align(unsigned int fragsz, unsigned int align_mask) > > struct napi_alloc_cache *nc = this_cpu_ptr(&napi_alloc_cache); > > > > fragsz = SKB_DATA_ALIGN(fragsz); > > + guard(local_lock_nested_bh)(&napi_alloc_cache.bh_lock); > > > > return __page_frag_alloc_align(&nc->page, fragsz, GFP_ATOMIC, > > align_mask); > > We have decided to advise against the use of guard() in networking, > at least for now. Understood. > Andrew, wasn't it on your TODO list to send the update to the docs? :) I can add it to Documentation/process/maintainer-netdev.rst Yes, no, Andrew? Sebastian