Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
block, bfq: return nbytes and not zero from struct cftype .write() me…
…thod 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: e21b7a0 ("block, bfq: add full hierarchical scheduling and cgroups support") Cc: [email protected] Signed-off-by: Jens Axboe <[email protected]>
- Loading branch information