Re: [PATCH] block/throttle: Call throtl_update_dispatch_stats with throtl_grp directly.

2012-09-04 Thread Vivek Goyal
On Fri, Aug 31, 2012 at 01:08:23PM +0800, Tao Ma wrote: > From: Tao Ma > > All callers of throtl_update_dispatch_stats uses tg_to_blkg and then > in this function we use blkg_to_tg again to change it back. So remove > all these useless conversion and use throtl_grp directly to call >

Re: [PATCH] block/throttle: Call throtl_update_dispatch_stats with throtl_grp directly.

2012-09-04 Thread Vivek Goyal
On Fri, Aug 31, 2012 at 01:08:23PM +0800, Tao Ma wrote: From: Tao Ma boyu...@taobao.com All callers of throtl_update_dispatch_stats uses tg_to_blkg and then in this function we use blkg_to_tg again to change it back. So remove all these useless conversion and use throtl_grp directly to call

[PATCH] block/throttle: Call throtl_update_dispatch_stats with throtl_grp directly.

2012-08-30 Thread Tao Ma
From: Tao Ma All callers of throtl_update_dispatch_stats uses tg_to_blkg and then in this function we use blkg_to_tg again to change it back. So remove all these useless conversion and use throtl_grp directly to call throtl_update_dispatch_stats. Cc: Tejun Heo Cc: Vivek Goyal Cc: Jens Axboe

[PATCH] block/throttle: Call throtl_update_dispatch_stats with throtl_grp directly.

2012-08-30 Thread Tao Ma
From: Tao Ma boyu...@taobao.com All callers of throtl_update_dispatch_stats uses tg_to_blkg and then in this function we use blkg_to_tg again to change it back. So remove all these useless conversion and use throtl_grp directly to call throtl_update_dispatch_stats. Cc: Tejun Heo t...@kernel.org