commit | 7e63b3dbede9a9695a0235ec03884818cf1375b4 | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@fb.com> | Thu Jan 15 10:39:12 2015 -0700 |
committer | Mohamad Ayyash <mkayyash@google.com> | Fri Mar 06 17:58:13 2015 -0800 |
tree | 90fa9f8d88a1c35a525a0b51cfa7c229b35b935b | |
parent | b939bf93b1e1571ab1d396e956d5b2775720e3c5 [diff] |
Improve rate limiting If we have pending IO, we should commit it before going to sleep, not just wait for IO that has already been issued. Also improve the delay functions to return the time spent, so that users don't have to track tha separately if they care about the precision. Signed-off-by: Jens Axboe <axboe@fb.com>