Re: [patch 03/13] GRU - dynamic allocation of kernel contexts

From: Andrew Morton
Date: Fri Apr 10 2009 - 20:24:13 EST


On Fri, 10 Apr 2009 08:24:18 -0500
Jack Steiner <steiner@xxxxxxx> wrote:

> + mutex_unlock(&gts->ts_ctxlock);
> + set_current_state(TASK_INTERRUPTIBLE);
> schedule_timeout(GRU_ASSIGN_DELAY); /* true hack ZZZ */

OK... But if the calling task has signal_pending(), the
schedule_timeout() will return immediately.

If that's a problem then perhaps use plain old msleep()?
--
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/