diff options
author | NeilBrown <[email protected]> | 2013-05-09 09:48:30 +1000 |
---|---|---|
committer | NeilBrown <[email protected]> | 2013-06-13 13:18:15 +1000 |
commit | 6b6204ee92adb53bfd6a77cb5679282ec3820c4b (patch) | |
tree | 750f1ac85412b93fae4cca92883fd6187380bc74 /drivers/scsi/mpt2sas/mpi/mpi2_raid.h | |
parent | 32f9f570d04461a41bdcd5c1d93b41ebc5ce182a (diff) |
md: md_stop_writes() should always freeze recovery.
__md_stop_writes() will currently sometimes freeze recovery.
So any caller must be ready for that to happen, and indeed they are.
However if __md_stop_writes() doesn't freeze_recovery, then
a recovery could start before mddev_suspend() is called, which
could be awkward. This can particularly cause problems or dm-raid.
So change __md_stop_writes() to always freeze recovery. This is safe
and more predicatable.
Reported-by: Brassow Jonathan <[email protected]>
Tested-by: Brassow Jonathan <[email protected]>
Signed-off-by: NeilBrown <[email protected]>
Diffstat (limited to 'drivers/scsi/mpt2sas/mpi/mpi2_raid.h')
0 files changed, 0 insertions, 0 deletions