Skip to content
Commit 065e519e authored by NeilBrown's avatar NeilBrown Committed by Shaohua Li
Browse files

md: MD_CLOSING needs to be cleared after called md_set_readonly or do_md_stop



if called md_set_readonly and set MD_CLOSING bit, the mddev cannot
be opened any more due to the MD_CLOING bit wasn't cleared. Thus it
needs to be cleared in md_ioctl after any call to md_set_readonly()
or do_md_stop().

Signed-off-by: default avatarNeilBrown <neilb@suse.com>
Fixes: af8d8e6f

 ("md: changes for MD_STILL_CLOSED flag")
Cc: stable@vger.kernel.org (v4.9+)
Signed-off-by: default avatarZhilong Liu <zlliu@suse.com>
Signed-off-by: default avatarShaohua Li <shli@fb.com>
parent 6f287ca6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment