]> git.baikalelectronics.ru Git - kernel.git/commit
md: only count actual openers as access which prevent a 'stop'
authorNeilBrown <neilb@suse.de>
Mon, 21 Jul 2008 07:05:25 +0000 (17:05 +1000)
committerNeilBrown <neilb@suse.de>
Mon, 21 Jul 2008 07:05:25 +0000 (17:05 +1000)
commit55b57a23ed60fc9adf02c1a04e9e10d5ebca24f3
tree00b025b91898ff32dba742b5075dd290fec4dc91
parentb4891c2a8035db4a4a081bc03f293f95453c279a
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>
drivers/md/md.c
include/linux/raid/md_k.h