> +static inline void
> +ckrm_clear_page_class(struct page *page)
> +{
> +     struct ckrm_zone *czone = page_ckrmzone(page);
> +     if (czone == NULL)
> +             return;
> +     sub_use_count(czone->memcls, 0, page_zonenum(page), 1);
> +     kref_put(&czone->memcls->nr_users, memclass_release);
> +     set_page_ckrmzone(page, NULL);
>  }

are you sure if it's safe?
this function is called with zone->lock held,
and memclass_release calls kfree.

YAMAMOTO Takashi


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
ckrm-tech mailing list
https://lists.sourceforge.net/lists/listinfo/ckrm-tech

Reply via email to