• Chris Mason's avatar
    Btrfs: Throttle for async bio submits higher up the chain · 9473f16c
    Chris Mason authored
    The current code waits for the count of async bio submits to get below
    a given threshold if it is too high right after adding the latest bio
    to the work queue.  This isn't optimal because the caller may have
    sequential adjacent bios pending they are waiting to send down the pipe.
    
    This changeset requires the caller to wait on the async bio count,
    and changes the async checksumming submits to wait for async bios any
    time they self throttle.
    
    The end result is much higher sequential throughput.
    Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
    9473f16c
disk-io.c 49.5 KB