Re: [PATCH 2/2 v2] softlockup: check all tasks in hung_task

From: Ingo Molnar
Date: Tue Feb 03 2009 - 07:24:16 EST



* Mandeep Singh Baines <msb@xxxxxxxxxx> wrote:

> + if (sysctl_hung_task_check_count && !(max_count--)) {
> + max_count = sysctl_hung_task_check_count;

just a minor nit, why not:

!--max_count

?

That way we can lose the parenthesis and we'll also not overcount and wont
let max_count go down to -1.

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/