Home
last modified time | relevance | path

Searched hist:eca8b53a6769e60d6d8240d71202d73b0af81901 (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/block/
H A Dblk-stat.cdiff eca8b53a6769e60d6d8240d71202d73b0af81901 Fri Oct 06 19:55:59 CDT 2017 Shaohua Li <shli@fb.com> blk-stat: delete useless code

Fix two issues:
- the per-cpu stat flush is unnecessary, nobody uses per-cpu stat except
sum it to global stat. We can do the calculation there. The flush just
wastes cpu time.
- some fields are signed int/s64. I don't see the point.

Reviewed-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Shaohua Li <shli@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
/openbmc/linux/include/linux/
H A Dblk_types.hdiff eca8b53a6769e60d6d8240d71202d73b0af81901 Fri Oct 06 19:55:59 CDT 2017 Shaohua Li <shli@fb.com> blk-stat: delete useless code

Fix two issues:
- the per-cpu stat flush is unnecessary, nobody uses per-cpu stat except
sum it to global stat. We can do the calculation there. The flush just
wastes cpu time.
- some fields are signed int/s64. I don't see the point.

Reviewed-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Shaohua Li <shli@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>