extern struct mutex xenwatch_mutex;
-static ATOMIC_NOTIFIER_HEAD(xenstore_chain);
+static BLOCKING_NOTIFIER_HEAD(xenstore_chain);
static void wait_for_devices(struct xenbus_driver *xendrv);
if (xenstored_ready > 0)
ret = nb->notifier_call(nb, 0, NULL);
else
- atomic_notifier_chain_register(&xenstore_chain, nb);
+ blocking_notifier_chain_register(&xenstore_chain, nb);
return ret;
}
void unregister_xenstore_notifier(struct notifier_block *nb)
{
- atomic_notifier_chain_unregister(&xenstore_chain, nb);
+ blocking_notifier_chain_unregister(&xenstore_chain, nb);
}
EXPORT_SYMBOL_GPL(unregister_xenstore_notifier);
xenbus_backend_probe_and_watch();
/* Notify others that xenstore is up */
- atomic_notifier_call_chain(&xenstore_chain, 0, NULL);
+ blocking_notifier_call_chain(&xenstore_chain, 0, NULL);
}