fio: Add to cgroup if parameter "cgroup" is enabled.
authorTao Ma <boyu.mt@taobao.com>
Thu, 26 Apr 2012 10:15:46 +0000 (12:15 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 26 Apr 2012 10:15:46 +0000 (12:15 +0200)
commit5d89ff793b002e2bd8c1d490030bf35b6f9ee2db
treeccd07a05ff0800f29dfa7af52e1163e791e1a724
parent79074e7c8c01a355be5b6d3a84df101100f93a66
fio: Add to cgroup if parameter "cgroup" is enabled.

Currently, we only add the tasks to cgroup if cgroup_weight is set by
the user. But if we want to test other blkcg parameters like block
throttle, the fio tasks isn't added to the corresponding cgroup and
it doesn't make sense.

So add the task to the corresponding cgroup if the cgroup name is given.

Signed-off-by: Tao Ma <boyu.mt@taobao.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
backend.c