Received: by 10.223.185.116 with SMTP id b49csp1110449wrg; Fri, 16 Feb 2018 12:39:38 -0800 (PST) X-Google-Smtp-Source: AH8x225Aw9EE7hul7g8VQejmrjtbdu4uAM1SS+GLOLJ2GS+/eU8XPCYn0Uoj+FHvP60ph2lAF/KT X-Received: by 2002:a17:902:b7ca:: with SMTP id v10-v6mr6948028plz.437.1518813578529; Fri, 16 Feb 2018 12:39:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518813578; cv=none; d=google.com; s=arc-20160816; b=iWtrpkKImoYwPxzIJoPhQSYVouf5sLXToih7yJZFTPRGm/tVM7/IuylvcfIBeap+bf AG32WPG8ozNL+EBCpsMTUJdZTgeDPpFTyY1LAb9sOAzrYcjzhJ1Mdj+uIr6i9/FmiaxG 1OgJM4/AYs1MmLCnZfl2L28jj1SJFgU96zVGHSpgiZ2pHUqcKAjGYdX0OkXPWXmP7JKc ELyyBTmvZyZ2QIAyvCji/HnSTA7B3JvWQ9Atyf3M9L5zSfbJL6oH0MD1WUIi/WfeOBDF dVR9blSLbnyG7U3sNnvQnL5NYKkqzncX++ifcgH/jy5LCRhUc232RlTNJNHPlZGqWLxv JrfQ== 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=et4OnWvY+kGWInEiqAd7XI7//TMPKCwQ/tTJHEAV164=; b=FpRXUs25BPrWtYaeATu3ofz7gLumjmhEouVRgIn7SB3uwpAacD4huNAxgYPHVbEcrI 8kdOw3oPJMY0aCdCkgXyHEK2yrpMw+ORTxrfluwIEUqEAM7fwNXL0OkQDzJZBa4LfeBT 7TUSEPEdQjEUhu6oMHuIlPu2ee6A3bfw7LYTLybkOjwgjb35ITKdIgFV6RY0ylA3ndFC umeFND97kl6zVfRkUt8HQPeBhSjoavx91eueG5h26JBD2RX2Cu7FjbNA/fNGLwjPBCdq jAhujaIo4INLeTVAEw97h6EKMNxeAC7dQz7YSNrmHPdoq14sqhlD4lv8sIbv7SGfWZYc ttJw== 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 m72si1825673pga.376.2018.02.16.12.39.24; Fri, 16 Feb 2018 12:39:38 -0800 (PST) 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 S1751248AbeBPUiP (ORCPT + 99 others); Fri, 16 Feb 2018 15:38:15 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:57296 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750948AbeBPUiO (ORCPT ); Fri, 16 Feb 2018 15:38:14 -0500 Received: from bigeasy by Galois.linutronix.de with local (Exim 4.80) (envelope-from ) id 1emmiY-0007pk-SR; Fri, 16 Feb 2018 21:34:51 +0100 Date: Fri, 16 Feb 2018 21:38:08 +0100 From: Sebastian Andrzej Siewior To: Alan Stern Cc: Mauro Carvalho Chehab , Frederic Weisbecker , LKML , Peter Zijlstra , Thomas Gleixner , linux-usb@vger.kernel.org Subject: Re: [RFC PATCH] usb: hcd: complete URBs in threaded-IRQ context instead of tasklet Message-ID: <20180216203808.23mvv4mtz6khhwfv@linutronix.de> References: <20180216170450.yl5owfphuvltstnt@breakpoint.cc> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20171215 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-02-16 13:29:01 [-0500], Alan Stern wrote: > We originally used tasklets because we didn't want to incur the delays > associated with running in a process context. It seems odd to be > reversing that decision now. The theaded interrupt runs SCHED_FIFO priority 50 by default. The only thing that can interrupt it are interrupts, a softirq (not ksoftirqd) and other tasks with a higher priority than 50. There should be no downside performance wise. > > The URBs from the root-hub never create an interrupt so I currently > > process them in a workqueue (I'm not sure if an URB-enqueue in the > > completion handler would break something). > > It worked okay before we changed over to using tasklets. Ah okay. I've seen that HCDs were no longer dropping their internal lock and I wasn't sure if such a change was also applied in RH-code. > Alan Stern Sebastian