Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1071835imm; Fri, 15 Jun 2018 10:42:34 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLL2DnUgm+cQq8BBP7BKDdPrna9h07yjmxiszWDMk6EtYNJ77UeS+Vuq4pk4VIRDV/akFS6 X-Received: by 2002:a62:e208:: with SMTP id a8-v6mr2975906pfi.6.1529084554722; Fri, 15 Jun 2018 10:42:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529084554; cv=none; d=google.com; s=arc-20160816; b=kGwkKQlINc/0s/BwiSzm2pgZPRS7D6wmB5BsArxe+4CscUoDjcG8P/Y7k0+DRlcSdU WBr6Mt8QvJB6lY5ImMUsNE6Ubg8aWIuNrS9lJOwFCCSYhDYn3Hr8C5Tr1zu7PHel7LNB /SblVv62KkLGS4mdekGo1SiVwL7Jn7dESbKi4dvJV5IHpCtVhe/9EM3Xu9bktoLpFTJl U8Qy++JWl6yvfzgVFASs0mzDpn3VGHU/VvNlm0YiEPW/cxz2f8TtXdTK8yLc17uJiiKt 6aVCMYvtnmpAJuFSEagz4uZOAZf0ndrN7t/emDyaKMyWYtL1zHDEqmuHW2Xgk0YY8Phe t5NQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=AB82x37/FQMkwR2cw1CVMQ1on9uQoABKiQx4/NrjmIc=; b=P8bTKfbkcwmTsY8EbxaJ3+g+UbCU5h+W6IhLGwFg0l5/LAsmog1BWXofjwHUmTlGH/ 213+kVUVJghW/nib8rQdjDJ37yWBIFcrmHDEsUKPBUJfwtr75E6XYbiLKNIKxBmnSApq PV4xFtIU2pkDia6I/ulkMG0zoI8P8dy/fl/5r+PVeCPhZJY5ImHGHZWrPKzmjX2h+uL8 cAiOxLOPeSt+EVe5Oqp3XHQK8e04vNzQAwUPe5b7h2lYpClfGmk8NSlTwpkRDTl+S3Gr qwyeAerOsPWR9L0v6kyD9ZarT6CehBd3S+5nYl3uU5v0lQ65hdy8euLdIRRXY24VLfvd rixg== ARC-Authentication-Results: i=1; mx.google.com; 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 i9-v6si6942109pgs.418.2018.06.15.10.42.19; Fri, 15 Jun 2018 10:42:34 -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; 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 S966181AbeFORkT (ORCPT + 99 others); Fri, 15 Jun 2018 13:40:19 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:51309 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966130AbeFORkS (ORCPT ); Fri, 15 Jun 2018 13:40:18 -0400 Received: from bigeasy by Galois.linutronix.de with local (Exim 4.80) (envelope-from ) id 1fTshp-0004pT-4q; Fri, 15 Jun 2018 19:40:13 +0200 Date: Fri, 15 Jun 2018 19:40:13 +0200 From: Sebastian Sewior To: Steven Rostedt Cc: Thomas Gleixner , Alan Stern , Mikulas Patocka , Ming Lei , Greg Kroah-Hartman , USB list , Kernel development list Subject: Re: High-priority softirqs [was: [PATCH] usb: don't offload isochronous urb completions to ksoftirq] Message-ID: <20180615174012.m6rqow2sytwgxxrx@linutronix.de> References: <20180615133428.20205bae@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20180615133428.20205bae@gandalf.local.home> User-Agent: NeoMutt/20180512 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-06-15 13:34:28 [-0400], Steven Rostedt wrote: > On Fri, 15 Jun 2018 19:28:34 +0200 (CEST) > Thomas Gleixner wrote: > > > One solution to that is to avoid both tasklets and kworkers and change the > > USB code to make use of threaded interrupt handlers. I.e. handle the fast > > stuff in the primary (hardirq) handler and delegate the rest to the irq > > thread. That thread still can offload disk type stuff to a kworker if > > needed. But the irq thread allows to bring the stuff under scheduler > > control and experiments which I did a few years ago worked out pretty good. > > If there's any question about this, drivers can request to have their > interrupt handlers run as threads. This has been added to mainline > years ago. And it really should be the default solution before pushing > off to tasklets or kworkers. https://lkml.kernel.org/r/20180216170450.yl5owfphuvltstnt@breakpoint.cc > -- Steve Sebastian