• L
    Btrfs: remove nr_async_submits and async_submit_draining · 736cd52e
    Liu Bo 提交于
    Now that we have the combo of flushing twice, which can make sure IO
    have started since the second flush will wait for page lock which
    won't be unlocked unless setting page writeback and queuing ordered
    extents, we don't need %async_submit_draining, %async_delalloc_pages
    and %nr_async_submits to tell whether the IO has actually started.
    
    Moreover, all the flushers in use are followed by functions that wait
    for ordered extents to complete, so %nr_async_submits, which tracks
    whether bio's async submit has made progress, doesn't really make
    sense.
    
    However, %async_delalloc_pages is still required by shrink_delalloc()
    as that function doesn't flush twice in the normal case (just issues a
    writeback with WB_REASON_FS_FREE_SPACE).
    Signed-off-by: NLiu Bo <bo.li.liu@oracle.com>
    Signed-off-by: NDavid Sterba <dsterba@suse.com>
    736cd52e
disk-io.c 120.5 KB