Re: [PATCH] blkcg: simplify statistic accumulation code

2017-09-18 Thread Tejun Heo
On Fri, Sep 15, 2017 at 09:36:21PM +0200, Arnd Bergmann wrote: > Some older compilers (gcc-4.4 through 4.6 in particular) struggle > with the way that blkg_rwstat_read() returns a structure, leading > to excessive stack usage and rather inefficient code: > > block/blk-cgroup.c: In function 'blkg_d

[PATCH] blkcg: simplify statistic accumulation code

2017-09-15 Thread Arnd Bergmann
Some older compilers (gcc-4.4 through 4.6 in particular) struggle with the way that blkg_rwstat_read() returns a structure, leading to excessive stack usage and rather inefficient code: block/blk-cgroup.c: In function 'blkg_destroy': block/blk-cgroup.c:354:1: error: the frame size of 1296 bytes is