• Neil Brown's avatar
    [PATCH] md 21 of 22 - Improve handling of MD super blocks · 7444c718
    Neil Brown authored
    1/ don't free the rdev->sb on an error -- it might be
       accessed again later.  Just wait for the device to be
       exported.
    2/ Change md_update_sb to __md_update_sb and have it
       clear the sb_dirty flag.
       New md_update_sb locks the device and calls __md_update_sb
       if sb_dirty.  This avoids any possbile races around
       updating the superblock
    7444c718
multipath.c 25.7 KB