Commit 7197a333 authored by Michael Biebl's avatar Michael Biebl

udev: Increase udev event timeout to 180s

Some kernel modules, like mptsas, can take longer then 30s to load so
udevd kills the (hanging) worker responsible for loading the module.
Increase timeout from 30s to 180s to workaround this issue.
Thanks Faidon Liambotis.

Closes: #787191
parent 1b6434a9
...@@ -7,6 +7,11 @@ systemd (215-17+deb8u2) UNRELEASED; urgency=medium ...@@ -7,6 +7,11 @@ systemd (215-17+deb8u2) UNRELEASED; urgency=medium
transitional dev packages. The .pc files of the compat libraries declare transitional dev packages. The .pc files of the compat libraries declare
a strictly versioned dependency on libsystemd.pc, so reflect that in the a strictly versioned dependency on libsystemd.pc, so reflect that in the
package dependencies as well. (Closes: #794290) package dependencies as well. (Closes: #794290)
* udev: Increase udev event timeout to 180s. Some kernel modules, like
mptsas, can take longer then 30s to load so udevd kills the (hanging)
worker responsible for loading the module. Increase timeout from 30s to
180s to workaround this issue. Thanks Faidon Liambotis.
(Closes: #787191)
-- Michael Biebl <biebl@debian.org> Mon, 08 Jun 2015 21:11:18 +0200 -- Michael Biebl <biebl@debian.org> Mon, 08 Jun 2015 21:11:18 +0200
......
...@@ -207,3 +207,4 @@ syslog-Increase-max_dgram_qlen-by-pulling-in-systemd.patch ...@@ -207,3 +207,4 @@ syslog-Increase-max_dgram_qlen-by-pulling-in-systemd.patch
Skip-filesystem-check-if-already-done-by-the-initram.patch Skip-filesystem-check-if-already-done-by-the-initram.patch
cryptsetup-Implement-offset-and-skip-options.patch cryptsetup-Implement-offset-and-skip-options.patch
Revert-core-one-step-back-again-for-nspawn-we-actual.patch Revert-core-one-step-back-again-for-nspawn-we-actual.patch
udev-increase-udev-event-timeout-to-180s.patch
From: Faidon Liambotis <paravoid@debian.org>
Date: Sat, 29 Aug 2015 17:05:01 +0200
Subject: udev: increase udev event timeout to 180s
Some kernel modules, like mptsas, can take longer then 30s to load so
udevd kills the (hanging) worker responsible for loading the module.
Increase timeout from 30s to 180s to workaround this issue, following
the upstream change which first increased the timeout from 30s to 60s
(2e92633) and subsequently to 180s (b5338a1).
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=787191
---
src/udev/udevd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/udev/udevd.c b/src/udev/udevd.c
index a45d324..072499c 100644
--- a/src/udev/udevd.c
+++ b/src/udev/udevd.c
@@ -1415,7 +1415,7 @@ int main(int argc, char *argv[])
if (worker->state != WORKER_RUNNING)
continue;
- if ((now(CLOCK_MONOTONIC) - worker->event_start_usec) > 30 * USEC_PER_SEC) {
+ if ((now(CLOCK_MONOTONIC) - worker->event_start_usec) > 180 * USEC_PER_SEC) {
log_error("worker [%u] %s timeout; kill it", worker->pid,
worker->event ? worker->event->devpath : "<idle>");
kill(worker->pid, SIGKILL);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment