Re: running get_user_pages() from kernel thread

Hugh Dickins
2009-06-16T20:58:38Z

On Tue, 16 Jun 2009, Johannes Weiner wrote:
>
> Did you have a particular reason not to pass in the faulting mm
> instead?

No good reason.

>
> As the swap token should only care about the faulting address space
> leading to swap io and not about the running process anyway, we could
> do it like below and remove all those pesky current->derefs in the
> same go. What do you think?

I think we'll have to claim joint authorship.
But I win by one checkpatch point, and a few minutes ;)

Hugh