Re: [PATCH v4 1/3] task_work_add: generic process-context callbacks

From: David Howells
Date: Tue Apr 17 2012 - 09:54:51 EST

Oleg Nesterov <oleg@xxxxxxxxxx> wrote:

> tsk is always "current", probably this should be documented, I'll add
> the comment.

If tsk is always current, then don't pass it as a parameter. Some arches keep
current in a register and it's much more efficient to use current directly in
those cases - and those that don't have to be able to obtain it reasonably

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at