[PATCH] md - Fix problems with freeing gendisk in md.c
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.
Showing
Please register or sign in to comment