Re: wait_for_completion_timeout() spurious failure under heavy load?

From: Roland Dreier
Date: Fri Jun 20 2008 - 10:38:25 EST


> but like in the commit below. Agreed?

> +
> + /*
> + * If the completion has arrived meanwhile
> + * then return 1 jiffy time left:
> + */
> + if (x->done && !timeout) {
> + timeout = 1;
> + break;
> + }
> +

Sure, that looks nice to me.

- R.
--
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/