Maciej S. Szmigiero
fc8ebd01de
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>
2018-08-16 13:11:16 -06:00
..
2018-07-27 09:17:41 -06:00
2017-11-03 11:29:50 -07:00
2018-08-16 13:11:16 -06:00
2018-08-16 13:08:13 -06:00
2018-07-09 09:07:52 -06:00
2018-08-16 13:08:15 -06:00
2018-07-26 15:49:41 -06:00
2018-08-09 08:25:04 -06:00
2018-08-01 09:16:03 -06:00
2018-08-14 10:52:40 -06:00
2018-01-17 09:49:21 -07:00
2018-06-09 06:37:14 -06:00
2018-05-24 13:38:59 -06:00
2018-07-09 09:07:54 -06:00
2018-08-02 09:58:14 -06:00
2018-07-09 09:07:54 -06:00
2018-01-29 11:51:49 -08:00
2018-06-02 20:35:00 -06:00
2018-04-10 08:38:46 -06:00
2018-07-09 09:07:52 -06:00
2018-07-09 09:07:53 -06:00
2018-07-09 09:07:52 -06:00
2018-07-09 09:07:53 -06:00
2017-08-08 14:58:03 -04:00
2018-07-17 16:04:00 -06:00
2018-06-01 07:38:19 -06:00
2018-05-24 13:38:59 -06:00
2018-08-09 08:34:17 -06:00
2017-11-14 15:32:19 -08:00
2017-02-27 20:54:05 +02:00
2018-08-09 08:34:17 -06:00
2018-07-17 16:04:00 -06:00
2018-07-22 11:30:53 -06:00
2018-07-22 11:30:53 -06:00
2018-07-24 14:46:39 -06:00
2018-06-19 11:27:18 -06:00
2018-07-09 09:07:54 -06:00
2018-07-09 09:07:54 -06:00
2018-08-11 15:41:25 -06:00
2018-06-17 05:37:55 +09:00
2018-08-09 12:43:16 -06:00
2018-06-23 10:25:45 -06:00
2018-08-14 11:05:52 -06:00
2018-07-09 09:07:54 -06:00
2018-07-09 09:07:52 -06:00
2018-08-09 09:12:59 -06:00
2018-07-24 14:43:26 -06:00
2018-08-01 09:13:03 -06:00
2018-08-05 19:32:09 -06:00
2018-08-07 17:57:13 -06:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-05-24 13:38:59 -06:00
2018-06-01 07:38:21 -06:00
2018-07-18 08:44:22 -06:00
2018-02-23 15:20:19 -07:00
2018-05-31 10:50:54 -04:00
2018-07-09 09:07:54 -06:00
2017-11-02 11:10:55 +01:00
2018-05-30 10:47:40 -06:00
2018-07-09 09:07:54 -06:00
2018-05-24 13:38:59 -06:00
2017-01-17 10:03:33 -07:00
2017-09-11 09:45:52 -06:00
2018-07-18 08:44:22 -06:00
2018-05-14 08:55:18 -06:00
2018-06-20 12:04:06 -06:00
2018-07-30 08:27:02 -06:00