cgroup: fix idr_preload usage
authorVladimir Davydov <vdavydov@parallels.com>
Mon, 3 Aug 2015 12:32:26 +0000 (15:32 +0300)
committerTejun Heo <tj@kernel.org>
Mon, 3 Aug 2015 14:40:07 +0000 (10:40 -0400)
commitcf780b7dc795ff495629b9879dc874eda49ada62
treecf82aaae16efb58e89b7ff30f9b17b20a68428e8
parent917d8e2d10f40e28aa9e0d824b2e5b8197d79fc2
cgroup: fix idr_preload usage

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: Vladimir Davydov <vdavydov@parallels.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup.c