From: Tejun Heo Date: Wed, 16 Feb 2011 17:10:19 +0000 (+0100) Subject: workqueue: make sure MAYDAY_INITIAL_TIMEOUT is at least 2 jiffies long X-Git-Tag: v2.6.37.2~31 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=142d511242fd3dbb10afe036baf2c810b021a2ac;p=pandora-kernel.git workqueue: make sure MAYDAY_INITIAL_TIMEOUT is at least 2 jiffies long commit 3233cdbd9fa347a6d6897a94cc6ed0302ae83c4f upstream. MAYDAY_INITIAL_TIMEOUT is defined as HZ / 100 and depending on configuration may end up 0 or 1. Even when it's 1, depending on when the mayday timer is added in the current jiffy interval, it may expire way before a jiffy has passed. Make sure MAYDAY_INITIAL_TIMEOUT is at least two to guarantee that at least a full jiffy has passed before calling rescuers. Signed-off-by: Tejun Heo Reported-by: Ray Jui Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed