• Vladimir Davydov's avatar
    cgroup: fix idr_preload usage · cf780b7d
    Vladimir Davydov authored
    It does not make much sense to call idr_preload with the same gfp mask
    as the following idr_alloc, but this is what we do in cgroup_idr_alloc.
    This patch fixes the idr_preload usage by making cgroup_idr_alloc call
    idr_alloc w/o __GFP_WAIT. Since it is now safe to call cgroup_idr_alloc
    with GFP_KERNEL, the patch also fixes all its callers appropriately.
    Signed-off-by: default avatarVladimir Davydov <vdavydov@parallels.com>
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    cf780b7d
cgroup.c 153 KB