summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2004-11-06 14:28:01 +0100
committerGreg KH <gregkh@suse.de>2005-04-26 22:16:40 -0700
commit2b41e68a08548ce44b4d145900dab2bb04cd34f7 (patch)
treef2e96c9f150775e3673891d38a5af23d4246c826 /etc
parent482b0ecd8fcc2651c003c6f1ae9a2d3301ecf34a (diff)
[PATCH] replace tdb database by simple lockless file database
This makes the udev operation completely lockless by storing a file for every node in /dev/.udevdb/* This solved the problem with deadlocking concurrent udev processes waiting for each other to release the file lock under heavy load.
Diffstat (limited to 'etc')
-rw-r--r--etc/init.d/udev4
-rw-r--r--etc/udev/udev.conf.in8
2 files changed, 6 insertions, 6 deletions
diff --git a/etc/init.d/udev b/etc/init.d/udev
index 7e6305a45b..8726090d44 100644
--- a/etc/init.d/udev
+++ b/etc/init.d/udev
@@ -79,8 +79,8 @@ case "$1" in
fi
# remove the database if it is there as we always want to start fresh
- if [ -f $udev_root/.udev.tdb ]; then
- rm -f $udev_root/.udev.tdb
+ if [ -f $udev_root/.udevdb ]; then
+ rm -rf $udev_root/.udevdb
fi
# propogate /udev from /sys - we only need this while we do not
diff --git a/etc/udev/udev.conf.in b/etc/udev/udev.conf.in
index 4c71b1dfec..bbbb1a93a2 100644
--- a/etc/udev/udev.conf.in
+++ b/etc/udev/udev.conf.in
@@ -6,16 +6,16 @@
# udev_root - where in the filesystem to place the device nodes
-udev_root="@udevdir@/"
+udev_root="@udevdir@"
# udev_db - The name and location of the udev database.
-udev_db="@udevdir@/.udev.tdb"
+udev_db="@udevdir@/.udevdb"
# udev_rules - The name and location of the udev rules file
-udev_rules="@configdir@/rules.d/"
+udev_rules="@configdir@/rules.d"
# udev_permissions - The name and location of the udev permission file
-udev_permissions="@configdir@/permissions.d/"
+udev_permissions="@configdir@/permissions.d"
# default_mode - set the default mode for all nodes that have no
# explicit match in the permissions file