From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Martin K. Petersen" Subject: Re: [ata_scsi_offline_dev] BUG: sleeping function called from invalid context at kernel/locking/mutex.c:238 Date: Mon, 06 Nov 2017 22:34:45 -0500 Message-ID: References: <20171029225155.qcum5i75awrt5tzm@wfg-t540p.sh.intel.com> <20171029231835.3725fnd5yehlmqob@wfg-t540p.sh.intel.com> <20171030110511.scfrdtlnf5lbdhu5@pd.tnic> <526e7cf2-0672-e44b-c32f-26128a2dfd37@codeaurora.org> <20171106224635.qopgsszwxzuitkpf@wfg-t540p.sh.intel.com> <20171106225354.6ucl4f4ipsjlntzl@wfg-t540p.sh.intel.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from aserp1040.oracle.com ([141.146.126.69]:31078 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752919AbdKGDfB (ORCPT ); Mon, 6 Nov 2017 22:35:01 -0500 In-Reply-To: (Linus Torvalds's message of "Mon, 6 Nov 2017 15:12:31 -0800") Sender: linux-ide-owner@vger.kernel.org List-Id: linux-ide@vger.kernel.org To: Linus Torvalds Cc: Fengguang Wu , IDE-ML , Christoph Hellwig , Tejun Heo , Hannes Reinecke , Linux Kernel Mailing List , Johannes Thumshirn , "Martin K. Petersen" , linux-scsi , James Bottomley Linus, > But it does seem to be a new regression in 4.14, caused by commit > 8a97712e5314 ("scsi: make 'state' device attribute pollable"), because > that's what added the sysfs_notify() call to scsi_device_set_state(), > which made that spinlock be a problem. > > That commit came in through the SCSI merge this merge window, and it > seems to still revert cleanly. > > So I do suspect that by now we should just revert that commit. It's > not clear why that state attribute should be pollable, and the new > code is clearly very much buggy. Yeah, let's revert it for now. -- Martin K. Petersen Oracle Linux Engineering