• NeilBrown's avatar
    dm io: remove BIOSET_NEED_RESCUER flag from bios bioset · c110a4b6
    NeilBrown authored
    The BIOSET_NEED_RESCUER flag is only needed when a make_request_fn might
    do two allocations from the one bioset, and the second one could block
    until the first bio completes.
    
    dm_io() is called from make_request_fn() context.  The closest it comes
    to multiple allocations is in chunk_io() in dm-snap-persistent.  But
    there the code uses a separate thread to avoid problems.
    
    So BIOSET_NEED_RESCUER is not needed.
    Signed-off-by: default avatarNeilBrown <neilb@suse.com>
    Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
    c110a4b6
dm-io.c 13.9 KB