aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorHannes Reinecke <[email protected]>2017-10-04 08:28:56 +0000
committerMartin K. Petersen <[email protected]>2017-10-06 18:48:55 +0000
commitfbce4d97fd4333bcffd00a73b9d98412be630332 (patch)
treeb6d54722f269ea418d32194522961d253ec34a09 /net/switchdev/switchdev.c
parentscsi: ibmvscsis: Fix write_pending failure path (diff)
downloadkernel-fbce4d97fd4333bcffd00a73b9d98412be630332.tar.gz
kernel-fbce4d97fd4333bcffd00a73b9d98412be630332.zip
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 <[email protected]> Reviewed-by: Johannes Thumshirn <[email protected]> Reviewed-by: Kyle Fortin <[email protected]> Tested-by: Don Brace <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions