From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161056AbcANXAo (ORCPT ); Thu, 14 Jan 2016 18:00:44 -0500 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:40776 "EHLO out5-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932120AbcANXAm (ORCPT ); Thu, 14 Jan 2016 18:00:42 -0500 X-Sasl-enc: Xsq64VesBSrku+DOHwghhg3fKMLs7edT0agr4WDMVHsg 1452812441 Subject: Re: [PATCH RT] net: move xmit_recursion to per-task variable on -RT To: Eric Dumazet References: <20160113152352.GH29964@linutronix.de> <20160114145007.GC17776@linutronix.de> <56981AE1.20202@stressinduktion.org> <1452810004.1223.154.camel@edumazet-glaptop2.roam.corp.google.com> Cc: Sebastian Andrzej Siewior , Thomas Gleixner , linux-rt-users@vger.kernel.org, linux-kernel@vger.kernel.org, Steven Rostedt , netdev@vger.kernel.org From: Hannes Frederic Sowa Message-ID: <56982895.6070901@stressinduktion.org> Date: Fri, 15 Jan 2016 00:00:37 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: <1452810004.1223.154.camel@edumazet-glaptop2.roam.corp.google.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 14.01.2016 23:20, Eric Dumazet wrote: > On Thu, 2016-01-14 at 23:02 +0100, Hannes Frederic Sowa wrote: > >> We are just adding a second recursion limit solely to openvswitch which >> has the same problem: >> >> https://patchwork.ozlabs.org/patch/566769/ >> >> This time also we depend on rcu_read_lock marking the section being >> nonpreemptible. Nice would be a more generic solution here which doesn't >> need to always add something to *current. > > > Note that rcu_read_lock() does not imply that preemption is disabled. Exactly, it is conditional on CONFIG_PREEMPT_CPU/CONFIG_PREMPT_COUNT but haven't thought about exactly that in this moment. I will resend this patch with better protection. Thanks Eric!