Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1396107imm; Thu, 6 Sep 2018 22:45:56 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdb2VUBXsE+mnaWpdOnVjqYXSIJ5QxhdCmqOUbm5meWY/x79Cks6r3Wu8FZ9C9K/F6g3lPuy X-Received: by 2002:a17:902:bf46:: with SMTP id u6-v6mr6222097pls.85.1536299156827; Thu, 06 Sep 2018 22:45:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536299156; cv=none; d=google.com; s=arc-20160816; b=H0X3NBmSluGZKCpTe4QJOuIv9En1reIE+r/WclgnUcXRQoL4WKMCTdDq3IZ9g8lH2d vvAtrF3XnfQrcIuHKH5NXUSKTuo2mvBgE0KoL3x22A7Y4ROjM0PQfwzkSIMUKUTpUET5 tfOmVyT3AVEB+GdeuuPb/77Fdw+kn/N47gftjMHllInl+Wd5tFROviSyMI8cV2UcfXVv CcOYYC7+dYUsWZi2mjzZyeL/AeAu/LdNlvAAsZhiILrzM0moQT+hqvBGMuOvRNwQejqK wa8nHgC2oWJD2XWaBFkEhZe/iHPAGLI0voqwsFYc/23aTCEBMXt/KF7I8VbHVoNDZv+L 9GXg== 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; bh=y95K1w/W1BtH1cVzmSJkzBaMa9mZQmEKvZ/zhkJTY1g=; b=EjREN+xkLFmLQkSJoDnfwIAKE8ApGkIskq42tq1w0/UmPFMBGYI+emGOwoHFZxs0fD /ZKsJyWZnu0ei28Fdzrjnga8v6DuvBwieEoaZ6i6zUFFv2bnqKJ2WB0ImfCdVDPixZlI VMQ6AaunJZARlVsGiCZIYpZAKtiEC3JcX1MTZ+aE0OFgJxi/Z5+H59J99NNgy9AxUKc4 ewfuTIOviQ5Nk9Hp5QSdbAXT+PKrO5MWXBnyMZCFXA+dT5UHS2scnbC+DDdjtSNHC9p/ kZmfFbYH1sT48UFaefCmL7sWURa1Z/bcJawmzivtWfrz8EyY+vOsgHlQhzBI4Rz0b1Jc yjTw== 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 h9-v6si7907314pgr.260.2018.09.06.22.45.41; Thu, 06 Sep 2018 22:45:56 -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 S1726370AbeIGKVm (ORCPT + 99 others); Fri, 7 Sep 2018 06:21:42 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:43688 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725933AbeIGKVm (ORCPT ); Fri, 7 Sep 2018 06:21:42 -0400 Received: from localhost (ip-213-127-74-90.ip.prioritytelecom.net [213.127.74.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id E947EC87; Fri, 7 Sep 2018 05:42:25 +0000 (UTC) Date: Fri, 7 Sep 2018 07:42:23 +0200 From: Greg Kroah-Hartman To: Sasha Levin Cc: "stable@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Sebastian Andrzej Siewior Subject: Re: [PATCH AUTOSEL 4.18 02/88] usb: usbtest: use irqsave() in USB's complete callback Message-ID: <20180907054223.GA10250@kroah.com> References: <20180907003547.57567-1-alexander.levin@microsoft.com> <20180907003547.57567-2-alexander.levin@microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180907003547.57567-2-alexander.levin@microsoft.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 07, 2018 at 12:35:52AM +0000, Sasha Levin wrote: > From: Sebastian Andrzej Siewior > > [ Upstream commit 6f3fde684d0232e66ada3410f016a58e09a87689 ] > > The USB completion callback does not disable interrupts while acquiring > the lock. We want to remove the local_irq_disable() invocation from > __usb_hcd_giveback_urb() and therefore it is required for the callback > handler to disable the interrupts while acquiring the lock. > The callback may be invoked either in IRQ or BH context depending on the > USB host controller. > Use the _irqsave() variant of the locking primitives. All of the "use irqsave in USB's complete callback" patches are not stable material as they are prep work for changes that have yet to hit Linus's tree. So you can drop this one. thanks, greg k-h