From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric W. Biederman" Subject: [PATCH 23/20] driver core: Don't remove kobjects in device_shutdown. Date: Sat, 23 May 2009 13:13:09 -0700 Message-ID: <1243109591-21611-3-git-send-email-ebiederm@xmission.com> References: Cc: , Tejun Heo , Cornelia Huck , , "Eric W. Biederman" , "Eric W. Biederman" To: Andrew Morton , Greg Kroah-Hartman Return-path: Received: from out01.mta.xmission.com ([166.70.13.231]:55181 "EHLO out01.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754535AbZEWUNr (ORCPT ); Sat, 23 May 2009 16:13:47 -0400 In-Reply-To: Sender: linux-fsdevel-owner@vger.kernel.org List-ID: From: Eric W. Biederman device_shutdown is defined to just shutdown the hardware and to not clean up any kernel data structures. Therefore don't put the kobjects for /sys/dev and /sys/dev/block and /sys/dev/char. This ensures we don't remove /sys/dev/block and /sys/dev/char while we still have symlinks from there to the actual devices. Signed-off-by: Eric W. Biederman --- drivers/base/core.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/drivers/base/core.c b/drivers/base/core.c index 8a1569c..49d3142 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c @@ -1653,7 +1653,4 @@ void device_shutdown(void) dev->driver->shutdown(dev); } } - kobject_put(sysfs_dev_char_kobj); - kobject_put(sysfs_dev_block_kobj); - kobject_put(dev_kobj); } -- 1.6.3.1.54.g99dd.dirty