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>
Wed, 7 Sep 2016 14:39:49 +0000 (08:39 -0600)
commitcd38cff40da34de0bf78f8305c89bdfafc606e7f
treeec7197a33f12f65fadc03a06ac205f5961f8b54b
parentd6cf7bfd4d627114ba3e2cce96fa9468042a6fba
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