Hannes Reinecke fbce4d97fd scsi: fixup kernel warning during rmmod()
Calling rmmod() on a FC driver will results in warnings like

WARNING: CPU: 60 PID: 14640 at fs/sysfs/group.c:237 device_del+0x54/0x240()
sysfs group ffffffff81eff140 not found for kobject '3:0:0:3'

The problem here is that during scsi_remove_target() we will iterate
over all devices, but fail to remove any of those as the call to
scsi_device_get() fails the check to module_is_live().  Hence the
devices will not be removed at this point, but all intermediate
structures like fc rport etc. will be.  Later on during
scsi_forget_host() the devices are removed for real, but the device
parent is already removed and causes this warning.

Signed-off-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Kyle Fortin <kyle.fortin@oracle.com>
Tested-by: Don Brace <don.brace@microsemi.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2017-10-06 14:48:55 -04:00
..
2017-09-14 21:02:03 -04:00
2017-09-07 12:12:43 -07:00
2017-09-07 12:12:43 -07:00
2017-09-07 12:12:43 -07:00
2017-08-25 17:29:29 -04:00
2017-09-07 12:12:43 -07:00
2017-09-07 12:12:43 -07:00
2017-09-07 12:12:43 -07:00
2017-09-07 21:11:05 -07:00
2017-08-25 17:21:11 -04:00
2015-04-17 10:13:56 -07:00
2015-11-25 22:08:55 -05:00
2017-08-24 22:29:06 -04:00
2014-07-17 22:07:37 +02:00
2016-05-10 22:01:07 -04:00
2015-11-09 16:32:14 -08:00
2013-04-09 14:13:16 -04:00
2013-04-09 14:13:16 -04:00
2017-09-05 08:18:42 -04:00
2017-08-29 21:51:44 -04:00
2017-08-25 17:21:10 -04:00
2017-08-08 11:49:51 -04:00
2016-01-27 20:36:10 +08:00
2017-09-13 10:47:14 -07:00
2016-01-27 20:36:10 +08:00
2017-04-26 15:09:04 -06:00
2014-07-17 22:07:35 +02:00
2017-08-25 17:21:11 -04:00
2016-11-28 15:51:31 -05:00
2017-04-13 13:58:20 -04:00
2017-09-07 12:12:43 -07:00
2017-05-16 08:44:15 -03:00
2017-09-07 12:12:43 -07:00
2016-02-23 21:27:02 -05:00
2014-07-17 22:07:39 +02:00
2014-11-12 11:15:57 +01:00
2017-08-08 11:49:51 -04:00
2015-11-18 11:59:09 -05:00
2017-04-26 18:32:29 -04:00
2013-04-09 14:13:15 -04:00