• T
    jbd: Use WRITE_SYNC in journal checkpoint. · a212d1a7
    Tao Ma 提交于
    In journal checkpoint, we write the buffer and wait for its finish.
    But in cfq, the async queue has a very low priority, and in our test,
    if there are too many sync queues and every queue is filled up with
    requests, and the process will hang waiting for the log space.
    
    So this patch tries to use WRITE_SYNC in __flush_batch so that the request will
    be moved into sync queue and handled by cfq timely. We also use the new plug,
    sot that all the WRITE_SYNC requests can be given as a whole when we unplug it.
    Reported-by: NRobin Dong <sanbai@taobao.com>
    Signed-off-by: NTao Ma <boyu.mt@taobao.com>
    Signed-off-by: NJan Kara <jack@suse.cz>
    a212d1a7
checkpoint.c 21.3 KB