• NeilBrown's avatar
    md/raid1: improve handling of pages allocated for write-behind. · af6d7b76
    NeilBrown authored
    The current handling and freeing of these pages is a bit fragile.
    We only keep the list of allocated pages in each bio, so we need to
    still have a valid bio when freeing the pages, which is a bit clumsy.
    
    So simply store the allocated page list in the r1_bio so it can easily
    be found and freed when we are finished with the r1_bio.
    Signed-off-by: default avatarNeilBrown <neilb@suse.de>
    af6d7b76
raid1.h 3.27 KB