blob: 98c83620ffdecbc9ec00c14b58a32fadfd676e48 [file] [log] [blame]
Brad Bishop316dfdd2018-06-25 12:45:53 -04001From 7844e070745611a52e355b73e7890f360dd540d0 Mon Sep 17 00:00:00 2001
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05002From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 14 Dec 2015 04:09:19 +0000
Brad Bishop316dfdd2018-06-25 12:45:53 -04004Subject: [PATCH] core/device.c: Change the default device timeout to 240 sec.
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05005MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9Upstream-Status: Inappropriate [Specific case QEMU/AB]
10
11Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
12Signed-off-by: Khem Raj <raj.khem@gmail.com>
Brad Bishopd7bf8c12018-02-25 22:55:05 -050013
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050014---
15 src/core/device.c | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18diff --git a/src/core/device.c b/src/core/device.c
Brad Bishop316dfdd2018-06-25 12:45:53 -040019index a43664d3b..4b16a8aec 100644
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050020--- a/src/core/device.c
21+++ b/src/core/device.c
Brad Bishop316dfdd2018-06-25 12:45:53 -040022@@ -113,7 +113,7 @@ static void device_init(Unit *u) {
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050023 * indefinitely for plugged in devices, something which cannot
24 * happen for the other units since their operations time out
25 * anyway. */
Brad Bishopd7bf8c12018-02-25 22:55:05 -050026- u->job_running_timeout = u->manager->default_timeout_start_usec;
27+ u->job_running_timeout = (240 * USEC_PER_SEC);
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050028
29 u->ignore_on_isolate = true;
30 }