diff options
author | NeilBrown <neilb@suse.de> | 2011-05-11 04:26:30 (GMT) |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2011-05-11 04:26:30 (GMT) |
commit | 8258c53208d7a9b7207e7d4dae36d2ea384cb278 (patch) | |
tree | 8ae5e67cde859e16dcc663c49269d025b9f6ce4b /sound/drivers | |
parent | bedd86b7773fd97f0d708cc0c371c8963ba7ba9a (diff) | |
download | linux-8258c53208d7a9b7207e7d4dae36d2ea384cb278.tar.xz |
md/bitmap: fix saving of events_cleared and other state.
If a bitmap is found to be 'stale' the events_cleared value
is set to match 'events'.
However if the array is degraded this does not get stored on disk.
This can subsequently lead to incorrect behaviour.
So change bitmap_update_sb to always update events_cleared in the
superblock from the known events_cleared.
For neatness also set ->state from ->flags.
This requires updating ->state whenever we update ->flags, which makes
sense anyway.
This is suitable for any active -stable release.
cc: stable@kernel.org
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'sound/drivers')
0 files changed, 0 insertions, 0 deletions