summaryrefslogtreecommitdiffstats
path: root/block/bfq-iosched.h
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2019-06-13 15:30:38 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-07-26 09:11:11 +0200
commitd483ea783a93f5cd59c93aa0314fde7267a0968f (patch)
treee40b3b44db91e908230e169d1200aa225c7a0e41 /block/bfq-iosched.h
parentc600458bb020e592ad29bf2449957e0a43f026b2 (diff)
downloadlinux-stable-d483ea783a93f5cd59c93aa0314fde7267a0968f.tar.gz
linux-stable-d483ea783a93f5cd59c93aa0314fde7267a0968f.tar.bz2
linux-stable-d483ea783a93f5cd59c93aa0314fde7267a0968f.zip
blkcg: update blkcg_print_stat() to handle larger outputs
commit f539da82f2158916e154d206054e0efd5df7ab61 upstream. Depending on the number of devices, blkcg stats can go over the default seqfile buf size. seqfile normally retries with a larger buffer but since the ->pd_stat() addition, blkcg_print_stat() doesn't tell seqfile that overflow has happened and the output gets printed truncated. Fix it by calling seq_commit() w/ -1 on possible overflows. Signed-off-by: Tejun Heo <tj@kernel.org> Fixes: 903d23f0a354 ("blk-cgroup: allow controllers to output their own stats") Cc: stable@vger.kernel.org # v4.19+ Cc: Josef Bacik <jbacik@fb.com> Signed-off-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'block/bfq-iosched.h')
0 files changed, 0 insertions, 0 deletions