Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934319AbZFPFyZ (ORCPT ); Tue, 16 Jun 2009 01:54:25 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1760268AbZFPFvC (ORCPT ); Tue, 16 Jun 2009 01:51:02 -0400 Received: from kroah.org ([198.145.64.141]:48324 "EHLO coco.kroah.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761603AbZFPFvB (ORCPT ); Tue, 16 Jun 2009 01:51:01 -0400 From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Shaohua Li , Arjan van de Ven , Dmitry Torokhov , James Bottomley , Andrew Morton , Greg Kroah-Hartman Subject: [PATCH 13/64] driver core: synchronize device shutdown Date: Mon, 15 Jun 2009 22:46:02 -0700 Message-Id: <1245131213-24168-13-git-send-email-gregkh@suse.de> X-Mailer: git-send-email 1.6.3.1 In-Reply-To: <20090616051351.GA23627@kroah.com> References: <20090616051351.GA23627@kroah.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1421 Lines: 47 From: Shaohua Li A patch series to make .shutdown execute asynchronously. Some drivers's shutdown can take a lot of time. The patches can help save some shutdown time. The patches use Arjan's async API. This patch: synchronize all tasks submitted by .shutdown Signed-off-by: Shaohua Li Cc: Arjan van de Ven Cc: Dmitry Torokhov Cc: James Bottomley Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman --- drivers/base/core.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/base/core.c b/drivers/base/core.c index 1977d4b..7e8576d 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c @@ -22,6 +22,7 @@ #include #include #include +#include #include "base.h" #include "power/power.h" @@ -1665,4 +1666,5 @@ void device_shutdown(void) kobject_put(sysfs_dev_char_kobj); kobject_put(sysfs_dev_block_kobj); kobject_put(dev_kobj); + async_synchronize_full(); } -- 1.6.3.2 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/