Re: [PATCH block/for-3.18] blkcg: remove blkcg->id

2014-09-08 Thread Jens Axboe
On 09/07/2014 05:15 PM, Tejun Heo wrote: > blkcg->id is a unique id given to each blkcg; however, the > cgroup_subsys_state which each blkcg embeds already has ->serial_nr > which can be used for the same purpose. Drop blkcg->id and replace > its uses with blkcg->css.serial_nr. Rename cfq_cgroup-

Re: [PATCH block/for-3.18] blkcg: remove blkcg->id

2014-09-08 Thread Vivek Goyal
On Mon, Sep 08, 2014 at 08:15:20AM +0900, Tejun Heo wrote: > blkcg->id is a unique id given to each blkcg; however, the > cgroup_subsys_state which each blkcg embeds already has ->serial_nr > which can be used for the same purpose. Drop blkcg->id and replace > its uses with blkcg->css.serial_nr.

[PATCH block/for-3.18] blkcg: remove blkcg->id

2014-09-07 Thread Tejun Heo
blkcg->id is a unique id given to each blkcg; however, the cgroup_subsys_state which each blkcg embeds already has ->serial_nr which can be used for the same purpose. Drop blkcg->id and replace its uses with blkcg->css.serial_nr. Rename cfq_cgroup->blkcg_id to ->blkcg_serial_nr and @id in check_b