• NeilBrown's avatar
    md/raid10: submit IO from originating thread instead of md thread. · 57c67df4
    NeilBrown authored
    queuing writes to the md thread means that all requests go through the
    one processor which may not be able to keep up with very high request
    rates.
    
    So use the plugging infrastructure to submit all requests on unplug.
    If a 'schedule' is needed, we fall back on the old approach of handing
    the requests to the thread for it to handle.
    
    This is nearly identical to a recent patch which provided similar
    functionality to RAID1.
    Signed-off-by: default avatarNeilBrown <neilb@suse.de>
    57c67df4
raid10.c 128 KB