commit | f2ea68cf42aafdd93393b6b8b20fc3c2b5f4390c | [log] [tgz] |
---|---|---|
author | NeilBrown <neilb@suse.de> | Mon Jul 21 17:05:25 2008 +1000 |
committer | NeilBrown <neilb@suse.de> | Mon Jul 21 17:05:25 2008 +1000 |
tree | 00b025b91898ff32dba742b5075dd290fec4dc91 | |
parent | d6e2215052810678bc9782fd980b52706fc71f50 [diff] |
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: NeilBrown <neilb@suse.de>