• Neil Brown's avatar
    [PATCH] md - Fix problems with freeing gendisk in md.c · c39f7320
    Neil Brown authored
    md currently tries to set_capacity() *after* freeing
    the gendisk structure.
    
    It also frees the gendisk even when switching to read-only.
    
    That patch open-codes free_mddev (which is only called once)
    and cleans all this up.
    c39f7320
md.c 80.4 KB