• J
    writeback: eliminate work item allocation in bd_start_writeback() · 85009b4f
    Jens Axboe 提交于
    Handle start-all writeback like we do periodic or kupdate
    style writeback - by marking the bdi_writeback as needing a full
    flush, and simply waking the thread. This eliminates the need to
    allocate and queue a specific work item just for this purpose.
    
    After this change, we truly only ever have one of them running at
    any point in time. We mark the need to start all flushes, and the
    writeback thread will clear it once it has processed the request.
    Reviewed-by: NJan Kara <jack@suse.cz>
    Signed-off-by: NJens Axboe <axboe@kernel.dk>
    85009b4f
fs-writeback.c 71.3 KB