Re: Re: [RFC][PATCH 11/9] lazy lru free vector for memcg

kamezawa.hiroyu
2008-09-16T13:06:47Z

----- Original Message -----

>[snip]
>
>> @@ -938,6 +1047,7 @@ static int mem_cgroup_force_empty(struct
>> * So, we have to do loop here until all lists are empty.
>> */
>> while (mem->res.usage > 0) {
>> + drain_page_cgroup_all();
>
>Shouldn't we wait here till the drain process completes?
>
I thought schedule_on_each_cpu() watis for completion of the work.
I'll check it, again.

Thank you for review.

Regards,
-Kame