Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754070AbcDKJAY (ORCPT ); Mon, 11 Apr 2016 05:00:24 -0400 Received: from mail-pf0-f181.google.com ([209.85.192.181]:35825 "EHLO mail-pf0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751954AbcDKJAT (ORCPT ); Mon, 11 Apr 2016 05:00:19 -0400 Date: Mon, 11 Apr 2016 18:01:47 +0900 From: Sergey Senozhatsky To: Johannes Thumshirn Cc: "Ewan D. Milne" , Hannes Reinecke , James Bottomley , "Martin K. Petersen" , Stephen Rothwell , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, linux-next@vger.kernel.org, Sergey Senozhatsky , Sergey Senozhatsky Subject: [-next] BUG_ON in scsi_target_destroy() Message-ID: <20160411090146.GA537@swordfish> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.6.0 (2016-04-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1766 Lines: 34 Hello, commit 7b106f2de6938c31ce5e9c86bc70ad3904666b96 Author: Johannes Thumshirn Date: Tue Apr 5 11:50:44 2016 +0200 scsi: Add intermediate STARGET_REMOVE state to scsi_target_state BUG_ON()s (next-20160411) each time I remove a usb flash [ 49.561600] [] scsi_target_destroy+0x5a/0xcb [scsi_mod] [ 49.561607] [] scsi_target_reap+0x4a/0x4f [scsi_mod] [ 49.561613] [] __scsi_remove_device+0xc3/0xd0 [scsi_mod] [ 49.561619] [] scsi_forget_host+0x52/0x63 [scsi_mod] [ 49.561623] [] scsi_remove_host+0x8c/0x102 [scsi_mod] [ 49.561627] [] usb_stor_disconnect+0x6b/0xab [usb_storage] [ 49.561634] [] usb_unbind_interface+0x77/0x1ca [usbcore] [ 49.561636] [] __device_release_driver+0x9d/0x121 [ 49.561638] [] device_release_driver+0x23/0x30 [ 49.561639] [] bus_remove_device+0xfb/0x10e [ 49.561641] [] device_del+0x164/0x1e6 [ 49.561648] [] ? remove_intf_ep_devs+0x3b/0x48 [usbcore] [ 49.561655] [] usb_disable_device+0x84/0x1a5 [usbcore] [ 49.561661] [] usb_disconnect+0x94/0x19f [usbcore] [ 49.561667] [] hub_event+0x5c1/0xdea [usbcore] [ 49.561670] [] process_one_work+0x1dc/0x37f [ 49.561672] [] worker_thread+0x282/0x36d [ 49.561673] [] ? rescuer_thread+0x2ae/0x2ae [ 49.561675] [] kthread+0xd2/0xda [ 49.561678] [] ret_from_fork+0x22/0x40 [ 49.561679] [] ? kthread_worker_fn+0x13e/0x13e -ss