From 2b41e68a08548ce44b4d145900dab2bb04cd34f7 Mon Sep 17 00:00:00 2001 From: "kay.sievers@vrfy.org" Date: Sat, 6 Nov 2004 14:28:01 +0100 Subject: [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. --- etc/init.d/udev | 4 ++-- etc/udev/udev.conf.in | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'etc') 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 -- cgit v1.2.3-54-g00ecf