Commit 8f99d138 authored by Brian King's avatar Brian King Committed by James Bottomley

[PATCH] ipr: Send uevent change notifications

Send scsi_host kobject uevent notifications for potential
configuration changes. This small change allows userspace ipr
apps to use netlink/uevent for configuration change notification
instead of having to poll /sys for this information. These apps
can already look for add/remove uevents for devices, but they also
need to be notified when an adapter reset occurs, which is what this
patch will do.
Signed-off-by: default avatarBrian King <brking@us.ibm.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent 937dbcc0
......@@ -1922,6 +1922,7 @@ static void ipr_worker_thread(void *data)
}
spin_unlock_irqrestore(ioa_cfg->host->host_lock, lock_flags);
kobject_uevent(&ioa_cfg->host->shost_classdev.kobj, KOBJ_CHANGE, NULL);
LEAVE;
}
......@@ -4052,10 +4053,10 @@ static int ipr_ioa_reset_done(struct ipr_cmnd *ipr_cmd)
list_for_each_entry(res, &ioa_cfg->used_res_q, queue) {
if (ioa_cfg->allow_ml_add_del && (res->add_to_ml || res->del_from_ml)) {
ipr_trace;
schedule_work(&ioa_cfg->work_q);
break;
}
}
schedule_work(&ioa_cfg->work_q);
list_for_each_entry_safe(hostrcb, temp, &ioa_cfg->hostrcb_free_q, queue) {
list_del(&hostrcb->queue);
......
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