From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751981AbcFWQgj (ORCPT ); Thu, 23 Jun 2016 12:36:39 -0400 Received: from mail-oi0-f46.google.com ([209.85.218.46]:34629 "EHLO mail-oi0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751941AbcFWQfo (ORCPT ); Thu, 23 Jun 2016 12:35:44 -0400 MIME-Version: 1.0 In-Reply-To: <1957A3C6-C4C2-4E7A-84E1-31A48F1469CD@qlogic.com> References: <7cc588b7-f1cf-62a8-e45b-ec7d863ba51e@leemhuis.info> <20160622115131.4bh7sh6uhmmhw44v@c203.arch.suse.de> <20160623072240.gt4wdjok27venxgr@c203.arch.suse.de> <1957A3C6-C4C2-4E7A-84E1-31A48F1469CD@qlogic.com> From: Linus Torvalds Date: Thu, 23 Jun 2016 09:35:42 -0700 X-Google-Sender-Auth: nD-bsJP-25LeoQoBWa7gizn1KvQ Message-ID: Subject: Re: Reported regressions for 4.7 as of Sunday, 2016-06-19 To: Quinn Tran Cc: Johannes Thumshirn , "Martin K. Petersen" , Josh Boyer , Thorsten Leemhuis , linux-kernel , linux-scsi Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 23, 2016 at 9:13 AM, Quinn Tran wrote: > > > QT: setting up the interrupt vector does not mean the interrupt starts firing immediately. Actually, it very much can mean that. If the interrupt can possibly be shared, there is a very real possibility of it fiding immediately. Now, with MSI(-X) I guess that isn't a worry, so I suspect your patch that handles just the legacy INTx case anyway is sufficient, but in general I would like people to always act as if interrupts can happen immediately after request_irq(). We have had *tons* of situations where the firmware left a device active, for example. Or where some random interrupt controller ended up having stale interrupts pending, even. So in general, it's just good practice to say "spurious interrupts can and do happen" - the shared irq case is the most obvious case, but there have been other sources of unexpected spurious interrupts firing. Linus