From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752011AbcELUto (ORCPT ); Thu, 12 May 2016 16:49:44 -0400 Received: from mail-pa0-f66.google.com ([209.85.220.66]:34238 "EHLO mail-pa0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751337AbcELUtm (ORCPT ); Thu, 12 May 2016 16:49:42 -0400 Message-ID: <1463086179.23934.162.camel@edumazet-glaptop3.roam.corp.google.com> Subject: Re: [RFC PATCH 0/2] net: threadable napi poll loop From: Eric Dumazet To: Paolo Abeni Cc: Peter Zijlstra , Hannes Frederic Sowa , Eric Dumazet , netdev , "David S. Miller" , Jiri Pirko , Daniel Borkmann , Alexei Starovoitov , Alexander Duyck , Tom Herbert , Ingo Molnar , Rik van Riel , LKML , "Paul E. McKenney" Date: Thu, 12 May 2016 13:49:39 -0700 In-Reply-To: <1463083620.5281.1.camel@redhat.com> References: <1462890590.23934.68.camel@edumazet-glaptop3.roam.corp.google.com> <90f3db8c-c30c-b204-576a-454939ac93ce@stressinduktion.org> <94f323a9-515e-4d75-cac8-ef0214f0499e@stressinduktion.org> <1462920697.23934.113.camel@edumazet-glaptop3.roam.corp.google.com> <20160511065527.GD3193@twins.programming.kicks-ass.net> <1463003804.23934.154.camel@edumazet-glaptop3.roam.corp.google.com> <1463083620.5281.1.camel@redhat.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2016-05-12 at 22:07 +0200, Paolo Abeni wrote: > > > static inline bool ksoftirqd_running(void) > > > { > > > return __this_cpu_read(ksoftirqd)->state == TASK_RUNNING; > > here something like: > > struct task_struct *tsk = __this_cpu_read(ksoftirqd); > return tsk && (tsk->state == TASK_RUNNING); > > is needed since __this_cpu_read(ksoftirqd) can be NULL on boot. Indeed I've seen this but only when backporting to an older linux kernel this morning. Have you got this with current linux kernel ?