]> git.baikalelectronics.ru Git - kernel.git/commit
Restore force switch of md array to readonly at reboot time.
authorNeilBrown <neilb@suse.de>
Tue, 5 Aug 2008 05:54:13 +0000 (15:54 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 5 Aug 2008 05:56:31 +0000 (15:56 +1000)
commit31103314cb0a3b02965915495e48e77b6c67dc68
treef01260723348738076becc9f62872d87819f3159
parent41215c08174334def6ca627a1820863241d32079
Restore force switch of md array to readonly at reboot time.

A recent patch allowed do_md_stop to know whether it was being called
via an ioctl or not, and thus where to allow for an extra open file
descriptor when checking if it is in use.
This broke then switch to readonly performed by the shutdown notifier,
which needs to work even when the array is still (apparently) active
(as md doesn't get told when the filesystem becomes readonly).

So restore this feature by pretending that there can be lots of
file descriptors open, but we still want do_md_stop to switch to
readonly.

Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/md.c