writeback: track if we're sleeping on progress in balance_dirty_pages()
authorJens Axboe <axboe@fb.com>
Thu, 1 Sep 2016 16:20:33 +0000 (10:20 -0600)
committerJens Axboe <axboe@fb.com>
Fri, 9 Sep 2016 20:07:36 +0000 (14:07 -0600)
commit9815cb6439d7e5eec07c0e9999b0601630bacb3a
tree0db440b6217d6d07e6e4378ce4fb3c0cde7caec4
parent5ce73ed8223fb763834445e50f67f1092f50baab
writeback: track if we're sleeping on progress in balance_dirty_pages()

Note in the bdi_writeback structure whenever a task ends up sleeping
waiting for progress. We can use that information in the lower layers
to increase the priority of writes.

Signed-off-by: Jens Axboe <axboe@fb.com>
include/linux/backing-dev-defs.h
mm/backing-dev.c
mm/page-writeback.c