• Andrew Morton's avatar
    [PATCH] md: Limit max_sectors on md when merge_bvec_fn defined on underlying device. · 59165b4f
    Andrew Morton authored
    From: NeilBrown <neilb@cse.unsw.edu.au>
    
    As no md personalities honour the merge_bvec_fn of underlying devices,
    we must make sure never to submit a bio larger than 1 page when a 
    merge_bvec_fn is defined.
    
    raid5 already does this (it never submits bios larger than one page).
    With this patch, all other raid personalities limit their
    max_sectors when a merge_bvec_fn is present.
    59165b4f
raid1.c 29.5 KB