summaryrefslogtreecommitdiff
path: root/drivers/scsi/g_NCR5380_mmio.c
diff options
context:
space:
mode:
authorJames Bottomley <JBottomley@Parallels.com>2013-11-15 14:58:00 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-12-11 22:34:10 -0800
commitb232973fafc677185e42ae3f62a65349bf1afc27 (patch)
treed43b2e1eca04720d308409457f4de3167a32fa64 /drivers/scsi/g_NCR5380_mmio.c
parent8e73078f451fe1d79362db1942f8822ba46bf189 (diff)
downloadlwn-b232973fafc677185e42ae3f62a65349bf1afc27.tar.gz
lwn-b232973fafc677185e42ae3f62a65349bf1afc27.zip
SCSI: enclosure: fix WARN_ON in dual path device removing
commit a1470c7bf3a4676e62e4c0fb204e339399eb5c59 upstream. Bug report from: wenxiong@linux.vnet.ibm.com The issue is happened in dual controller configuration. We got the sysfs warnings when rmmod the ipr module. enclosure_unregister() in drivers/msic/enclosure.c, call device_unregister() for each componment deivce, device_unregister() ->device_del()->kobject_del() ->sysfs_remove_dir(). In sysfs_remove_dir(), set kobj->sd = NULL. For each componment device, enclosure_component_release()->enclosure_remove_links()->sysfs_remove_link() in which checking kobj->sd again, it has been set as NULL when doing device_unregister. So we saw all these sysfs WARNING. Tested-by: wenxiong@linux.vnet.ibm.com Signed-off-by: James Bottomley <JBottomley@Parallels.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/scsi/g_NCR5380_mmio.c')
0 files changed, 0 insertions, 0 deletions