Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934097AbZLKWbJ (ORCPT ); Fri, 11 Dec 2009 17:31:09 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1762774AbZLKWZU (ORCPT ); Fri, 11 Dec 2009 17:25:20 -0500 Received: from kroah.org ([198.145.64.141]:32788 "EHLO coco.kroah.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1762712AbZLKWZA (ORCPT ); Fri, 11 Dec 2009 17:25:00 -0500 From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: "Eric W. Biederman" , "Eric W. Biederman" , Greg Kroah-Hartman Subject: [PATCH 10/27] Driver core: Don't remove kobjects in device_shutdown. Date: Fri, 11 Dec 2009 14:24:32 -0800 Message-Id: <1260570289-6997-10-git-send-email-gregkh@suse.de> X-Mailer: git-send-email 1.6.5.3 In-Reply-To: <20091211212642.GA6624@kroah.com> References: <20091211212642.GA6624@kroah.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1226 Lines: 37 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. Acked-by: Kay Sievers Signed-off-by: Eric W. Biederman Signed-off-by: Greg Kroah-Hartman --- 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 0d3c29d..353b137 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c @@ -1730,8 +1730,5 @@ void device_shutdown(void) dev->driver->shutdown(dev); } } - kobject_put(sysfs_dev_char_kobj); - kobject_put(sysfs_dev_block_kobj); - kobject_put(dev_kobj); async_synchronize_full(); } -- 1.6.5.5 -- 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/