Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753568AbeAKETw (ORCPT + 1 other); Wed, 10 Jan 2018 23:19:52 -0500 Received: from mail-io0-f175.google.com ([209.85.223.175]:45104 "EHLO mail-io0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752922AbeAKETv (ORCPT ); Wed, 10 Jan 2018 23:19:51 -0500 X-Google-Smtp-Source: ACJfBov1WE0JBHdHBLzRXhJQCo5HP9fdTlv7CeeVcBdQhX3rFNgIzeOze7KhiNVqMK92DlUzisYfb+fRVxqLfZZ/I5M= MIME-Version: 1.0 In-Reply-To: <20180111032232.GA11633@lerouge> References: <20180109133623.10711-1-dima@arista.com> <20180109133623.10711-2-dima@arista.com> <1515620880.3350.44.camel@arista.com> <20180111032232.GA11633@lerouge> From: Linus Torvalds Date: Wed, 10 Jan 2018 20:19:49 -0800 X-Google-Sender-Auth: MMQNYiFxxH-wWo1c7kYz4TXvHKk Message-ID: Subject: Re: [RFC 1/2] softirq: Defer net rx/tx processing to ksoftirqd context To: Frederic Weisbecker Cc: Dmitry Safonov , Eric Dumazet , LKML , Dmitry Safonov <0x7f454c46@gmail.com>, Andrew Morton , David Miller , Frederic Weisbecker , Hannes Frederic Sowa , Ingo Molnar , "Levin, Alexander (Sasha Levin)" , Paolo Abeni , "Paul E. McKenney" , Peter Zijlstra , Radu Rendec , Rik van Riel , Stanislaw Gruszka , Thomas Gleixner , Wanpeng Li Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Wed, Jan 10, 2018 at 7:22 PM, Frederic Weisbecker wrote: > > Makes sense, but I think you need to keep the TASK_RUNNING check. Yes, good point. > So perhaps it should be: > > - return tsk && (tsk->state == TASK_RUNNING); > + return (tsk == current) && (tsk->state == TASK_RUNNING); Looks good to me - definitely worth trying. Maybe that weakens the thing so much that it doesn't actually help the UDP packet storm case? And maybe it's not sufficient for the dvb issue. But I think it's worth at least testing. Maybe it makes neither side entirely happy, but maybe it might be a good halfway point? Linus