Commit:     6a8d8abb6e4497ae4132a9b1f0a956ea501f1c46
Parent:     7eff2e7a8b65c25920207324e56611150eb1cd9a
Author:     Kay Sievers <[EMAIL PROTECTED]>
AuthorDate: Wed Aug 15 15:38:28 2007 +0200
Committer:  Greg Kroah-Hartman <[EMAIL PROTECTED]>
CommitDate: Fri Oct 12 14:51:01 2007 -0700

    Driver core: add CONFIG_UEVENT_HELPER_PATH
    The kernel creates a process for every event that is send, even when
    there is no binary it could execute.  We are needlessly creating around
    200-300 failing processes during early bootup, until we have the chance
    to disable it from userspace.
    This change allows us to disable /sbin/hotplug entirely, if you want to,
    by setting UEVENT_HELPER_PATH="" in the kernel config.
    Signed-off-by: Kay Sievers <[EMAIL PROTECTED]>
    Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>
 drivers/base/Kconfig |    8 ++++++++
 lib/kobject_uevent.c |    2 +-
 2 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/drivers/base/Kconfig b/drivers/base/Kconfig
index 5d6312e..d7da109 100644
--- a/drivers/base/Kconfig
+++ b/drivers/base/Kconfig
@@ -1,5 +1,13 @@
 menu "Generic Driver Options"
+       string "path to uevent helper"
+       depends on HOTPLUG
+       default "/sbin/hotplug"
+       help
+         Path to uevent helper program forked by the kernel for
+         every uevent.
        bool "Select only drivers that don't need compile-time external 
firmware" if EXPERIMENTAL
        default y
diff --git a/lib/kobject_uevent.c b/lib/kobject_uevent.c
index 7d8aeb3..5ccda46 100644
--- a/lib/kobject_uevent.c
+++ b/lib/kobject_uevent.c
@@ -35,7 +35,7 @@ const char *kobject_actions[] = {
 #if defined(CONFIG_HOTPLUG)
 u64 uevent_seqnum;
-char uevent_helper[UEVENT_HELPER_PATH_LEN] = "/sbin/hotplug";
 static DEFINE_SPINLOCK(sequence_lock);
 #if defined(CONFIG_NET)
 static struct sock *uevent_sock;
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to