Skip to content
Commit df5b20cf authored by Neil Brown's avatar Neil Brown
Browse files

md: Better control of when do_md_stop is allowed to stop the array.



do_md_stop check the number of active users before allowing the array
to be stopped.
Two problems:
  1/ it assumes the request is coming through an open file descriptor
     (via ioctl) so it allows for that.  This is not always the case.
  2/ it doesn't do the check it the array hasn't been activated.
     This is not good for cases when we use an inactive array to hold
     some devices in a container.

Signed-off-by: default avatarNeil Brown <neilb@suse.de>
parent 26ef379f
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