Commit d1fea47c authored by Stephen M. Cameron's avatar Stephen M. Cameron Committed by Christoph Hellwig

hpsa: remove online devices from offline device list

When devices come on line, they should be removed from the list of
offline devices that are monitored.
Signed-off-by: default avatarStephen M. Cameron <scameron@beardog.cce.hp.com>
Reviewed-by: default avatarScott Teel <scott.teel@hp.com>
Reviewed-by: default avatarJoe Handzik <joseph.t.handzik@hp.com>
Reviewed by: Mike MIller <michael.miller@canonical.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent 0b9e7b74
...@@ -6914,8 +6914,12 @@ static int hpsa_offline_devices_ready(struct ctlr_info *h) ...@@ -6914,8 +6914,12 @@ static int hpsa_offline_devices_ready(struct ctlr_info *h)
d = list_entry(this, struct offline_device_entry, d = list_entry(this, struct offline_device_entry,
offline_list); offline_list);
spin_unlock_irqrestore(&h->offline_device_lock, flags); spin_unlock_irqrestore(&h->offline_device_lock, flags);
if (!hpsa_volume_offline(h, d->scsi3addr)) if (!hpsa_volume_offline(h, d->scsi3addr)) {
spin_lock_irqsave(&h->offline_device_lock, flags);
list_del(&d->offline_list);
spin_unlock_irqrestore(&h->offline_device_lock, flags);
return 1; return 1;
}
spin_lock_irqsave(&h->offline_device_lock, flags); spin_lock_irqsave(&h->offline_device_lock, flags);
} }
spin_unlock_irqrestore(&h->offline_device_lock, flags); spin_unlock_irqrestore(&h->offline_device_lock, flags);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment