summaryrefslogtreecommitdiff
path: root/Documentation/nios2
diff options
context:
space:
mode:
authorMichael Lyle <mlyle@lyle.org>2018-01-08 12:21:23 -0800
committerJens Axboe <axboe@kernel.dk>2018-01-08 13:29:00 -0700
commit6e6ccc67b9c7a682d717feedb887cb630a984317 (patch)
treeabf6ad009f05368e7e25d606165ffd12cf213d20 /Documentation/nios2
parent539d39eb27083405b82b9e604e88af01a9a46c63 (diff)
bcache: writeback: properly order backing device IO
Writeback keys are presently iterated and dispatched for writeback in order of the logical block address on the backing device. Multiple may be, in parallel, read from the cache device and then written back (especially when there are contiguous I/O). However-- there was no guarantee with the existing code that the writes would be issued in LBA order, as the reads from the cache device are often re-ordered. In turn, when writing back quickly, the backing disk often has to seek backwards-- this slows writeback and increases utilization. This patch introduces an ordering mechanism that guarantees that the original order of issue is maintained for the write portion of the I/O. Performance for writeback is significantly improved when there are multiple contiguous keys or high writeback rates. Signed-off-by: Michael Lyle <mlyle@lyle.org> Reviewed-by: Tang Junhui <tang.junhui@zte.com.cn> Tested-by: Tang Junhui <tang.junhui@zte.com.cn> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'Documentation/nios2')
0 files changed, 0 insertions, 0 deletions