Skip to content
Commit 3233cdbd authored by Tejun Heo's avatar Tejun Heo
Browse files

workqueue: make sure MAYDAY_INITIAL_TIMEOUT is at least 2 jiffies long



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: default avatarTejun Heo <tj@kernel.org>
Reported-by: default avatarRay Jui <rjui@broadcom.com>
Cc: stable@kernel.org
parent 58a69cb4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment