]> git.baikalelectronics.ru Git - kernel.git/commit
md: avoid possible spinning md thread at shutdown.
authorNeilBrown <neilb@suse.de>
Mon, 5 May 2014 23:36:08 +0000 (09:36 +1000)
committerNeilBrown <neilb@suse.de>
Mon, 5 May 2014 23:49:31 +0000 (09:49 +1000)
commit3dcbb5de6070ce9896da1d8945a40bce719a52c0
tree7357293dea01b968a18a745640c8c15f93061ccc
parent3b1c76d9652bd0710034df6ac0185a520f8e6014
md: avoid possible spinning md thread at shutdown.

If an md array with externally managed metadata (e.g. DDF or IMSM)
is in use, then we should not set safemode==2 at shutdown because:

1/ this is ineffective: user-space need to be involved in any 'safemode' handling,
2/ The safemode management code doesn't cope with safemode==2 on external metadata
   and md_check_recover enters an infinite loop.

Even at shutdown, an infinite-looping process can be problematic, so this
could cause shutdown to hang.

Cc: stable@vger.kernel.org (any kernel)
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/md.c