[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1231743399.5867.50.camel@sli10-desk.sh.intel.com>
Date: Mon, 12 Jan 2009 14:56:39 +0800
From: Shaohua Li <shaohua.li@...el.com>
To: lkml <linux-kernel@...r.kernel.org>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
Arjan van de Ven <arjan@...radead.org>
Subject: [PATCH 1/3]synchronize device shutdown
synchronize all tasks submitted by .shutdown
Signed-off-by: Shaohua Li <shaohua.li@...el.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();
}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists