Skip to content
Commit f2ea68cf authored by NeilBrown's avatar NeilBrown
Browse files

md: only count actual openers as access which prevent a 'stop'



Open isn't the only thing that increments ->active.  e.g. reading
/proc/mdstat will increment it briefly.  So to avoid false positives
in testing for concurrent access, introduce a new counter that counts
just the number of times the md device it open.

Signed-off-by: default avatarNeilBrown <neilb@suse.de>
parent d6e22150
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment