aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/stat-cpi.py
diff options
context:
space:
mode:
authorMaciej S. Szmigiero <[email protected]>2018-08-15 21:56:45 +0000
committerJens Axboe <[email protected]>2018-08-16 19:11:16 +0000
commitfc8ebd01deeb12728c83381f6ec923e4a192ffd3 (patch)
tree7233047c8a5d8c0925d62b9a59235c73996f0931 /tools/perf/scripts/python/stat-cpi.py
parentblock, bfq: improve code of bfq_bfqq_charge_time (diff)
downloadkernel-fc8ebd01deeb12728c83381f6ec923e4a192ffd3.tar.gz
kernel-fc8ebd01deeb12728c83381f6ec923e4a192ffd3.zip
block, bfq: return nbytes and not zero from struct cftype .write() method
The value that struct cftype .write() method returns is then directly returned to userspace as the value returned by write() syscall, so it should be the number of bytes actually written (or consumed) and not zero. Returning zero from write() syscall makes programs like /bin/echo or bash spin. Signed-off-by: Maciej S. Szmigiero <[email protected]> Fixes: e21b7a0b9887 ("block, bfq: add full hierarchical scheduling and cgroups support") Cc: [email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stat-cpi.py')
0 files changed, 0 insertions, 0 deletions