mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/3]synchronize device shutdown
@ 2009-01-12  6:56 Shaohua Li
  0 siblings, 0 replies; only message in thread
From: Shaohua Li @ 2009-01-12  6:56 UTC (permalink / raw)
  To: lkml; +Cc: Andrew Morton, Arjan van de Ven

synchronize all tasks submitted by .shutdown

Signed-off-by: Shaohua Li <shaohua.li@intel.com>
---
 drivers/base/core.c |    2 ++
 1 file changed, 2 insertions(+)

Index: linux/drivers/base/core.c
===================================================================
--- linux.orig/drivers/base/core.c	2009-01-12 14:39:07.000000000 +0800
+++ linux/drivers/base/core.c	2009-01-12 14:40:45.000000000 +0800
@@ -22,6 +22,7 @@
 #include <linux/kallsyms.h>
 #include <linux/semaphore.h>
 #include <linux/mutex.h>
+#include <linux/async.h>
 
 #include "base.h"
 #include "power/power.h"
@@ -1618,4 +1619,5 @@ void device_shutdown(void)
 	kobject_put(sysfs_dev_char_kobj);
 	kobject_put(sysfs_dev_block_kobj);
 	kobject_put(dev_kobj);
+	async_synchronize_full();
 }



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-01-12  6:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-12  6:56 [PATCH 1/3]synchronize device shutdown Shaohua Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®