diff options
author | Maciej S. Szmigiero <mail@maciej.szmigiero.name> | 2018-08-16 00:56:45 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-08-16 22:11:16 +0300 |
commit | fc8ebd01deeb12728c83381f6ec923e4a192ffd3 (patch) | |
tree | 7233047c8a5d8c0925d62b9a59235c73996f0931 /block/badblocks.c | |
parent | f812164869b98d81d692ce12bfed76621a5c8908 (diff) | |
download | linux-fc8ebd01deeb12728c83381f6ec923e4a192ffd3.tar.xz |
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 <mail@maciej.szmigiero.name>
Fixes: e21b7a0b9887 ("block, bfq: add full hierarchical scheduling and cgroups support")
Cc: stable@vger.kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/badblocks.c')
0 files changed, 0 insertions, 0 deletions