Re: [PATCH 17/24] blkcg: implement blkcg_policy->on/offline_pd_fn() and blkcg_gq->online

2013-01-08 Thread Vivek Goyal
On Fri, Dec 28, 2012 at 12:35:39PM -0800, Tejun Heo wrote: > Add two blkcg_policy methods, ->online_pd_fn() and ->offline_pd_fn(), > which are invoked as the policy_data gets activated and deactivated > while holding both blkcg and q locks. > > Also, add blkcg_gq->online bool, which is set and

Re: [PATCH 17/24] blkcg: implement blkcg_policy-on/offline_pd_fn() and blkcg_gq-online

2013-01-08 Thread Vivek Goyal
On Fri, Dec 28, 2012 at 12:35:39PM -0800, Tejun Heo wrote: Add two blkcg_policy methods, -online_pd_fn() and -offline_pd_fn(), which are invoked as the policy_data gets activated and deactivated while holding both blkcg and q locks. Also, add blkcg_gq-online bool, which is set and cleared as

Re: [PATCH 17/24] blkcg: implement blkcg_policy->on/offline_pd_fn() and blkcg_gq->online

2013-01-02 Thread Tejun Heo
On Wed, Jan 02, 2013 at 02:38:28PM -0500, Vivek Goyal wrote: > On Fri, Dec 28, 2012 at 12:35:39PM -0800, Tejun Heo wrote: > > [..] > > diff --git a/block/blk-cgroup.h b/block/blk-cgroup.h > > index 40f5b97..678e89e 100644 > > --- a/block/blk-cgroup.h > > +++ b/block/blk-cgroup.h > > @@ -106,12

Re: [PATCH 17/24] blkcg: implement blkcg_policy->on/offline_pd_fn() and blkcg_gq->online

2013-01-02 Thread Vivek Goyal
On Fri, Dec 28, 2012 at 12:35:39PM -0800, Tejun Heo wrote: [..] > diff --git a/block/blk-cgroup.h b/block/blk-cgroup.h > index 40f5b97..678e89e 100644 > --- a/block/blk-cgroup.h > +++ b/block/blk-cgroup.h > @@ -106,12 +106,17 @@ struct blkcg_gq { > /* reference count */ > int

Re: [PATCH 17/24] blkcg: implement blkcg_policy-on/offline_pd_fn() and blkcg_gq-online

2013-01-02 Thread Vivek Goyal
On Fri, Dec 28, 2012 at 12:35:39PM -0800, Tejun Heo wrote: [..] diff --git a/block/blk-cgroup.h b/block/blk-cgroup.h index 40f5b97..678e89e 100644 --- a/block/blk-cgroup.h +++ b/block/blk-cgroup.h @@ -106,12 +106,17 @@ struct blkcg_gq { /* reference count */ int

Re: [PATCH 17/24] blkcg: implement blkcg_policy-on/offline_pd_fn() and blkcg_gq-online

2013-01-02 Thread Tejun Heo
On Wed, Jan 02, 2013 at 02:38:28PM -0500, Vivek Goyal wrote: On Fri, Dec 28, 2012 at 12:35:39PM -0800, Tejun Heo wrote: [..] diff --git a/block/blk-cgroup.h b/block/blk-cgroup.h index 40f5b97..678e89e 100644 --- a/block/blk-cgroup.h +++ b/block/blk-cgroup.h @@ -106,12 +106,17 @@