X-Git-Url: http://git.cascardo.eti.br/?a=blobdiff_plain;f=fs%2Ffs-writeback.c;h=05713a5da0834233edad0049d7443dd63e6c1078;hb=3f2577749948803491874c6895fec559f3473eab;hp=4d09d4441e3ee4fb7a2939a5c2cabbfa9e08070e;hpb=84bd8d33a9604256ce0d86ca6d035295e874fa99;p=cascardo%2Flinux.git diff --git a/fs/fs-writeback.c b/fs/fs-writeback.c index 4d09d4441e3e..05713a5da083 100644 --- a/fs/fs-writeback.c +++ b/fs/fs-writeback.c @@ -1949,6 +1949,12 @@ void wakeup_flusher_threads(long nr_pages, enum wb_reason reason) { struct backing_dev_info *bdi; + /* + * If we are expecting writeback progress we must submit plugged IO. + */ + if (blk_needs_flush_plug(current)) + blk_schedule_flush_plug(current); + if (!nr_pages) nr_pages = get_nr_dirty_pages();