[SCSI] ses: update enclosure data on hot add
Now that hot add works correctly, if a new device is added, we're still operating on stale enclosure data, so fix that by updating the enclosure diagnostic pages when we get notified of a device hot add Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
This commit is contained in:
committed by
James Bottomley
parent
43d8eb9cfd
commit
21fab1d059
@@ -315,6 +315,9 @@ int enclosure_add_device(struct enclosure_device *edev, int component,
|
||||
|
||||
cdev = &edev->component[component];
|
||||
|
||||
if (cdev->dev == dev)
|
||||
return -EEXIST;
|
||||
|
||||
if (cdev->dev)
|
||||
enclosure_remove_links(cdev);
|
||||
|
||||
|
Reference in New Issue
Block a user