On Thu 14-10-21 10:05:21, Vasily Averin wrote: [...] > > + /* Bulk allocator does not support memcg accounting. */ > > + if (unlikely(gfp & __GFP_ACCOUNT)) > > + goto out; > > + > > May be (memcg_kmem_enabled() && (gfp & __GFP_ACCOUNT)) check is better here? Yes please -- Michal Hocko SUSE Labs