]> git.baikalelectronics.ru Git - kernel.git/commit
md: two small fixes to handling interrupt resync.
authorNeilBrown <neilb@suse.de>
Tue, 7 Feb 2012 01:01:51 +0000 (12:01 +1100)
committerNeilBrown <neilb@suse.de>
Tue, 7 Feb 2012 01:01:51 +0000 (12:01 +1100)
commit1adbc3159291dbc5d212705b0906b6466de674e3
treeade2010773b721e3d699e75a9348f200e7ad31c4
parent5725424a83cf7355c7cdc30ac3eadd43b3706c89
md: two small fixes to handling interrupt resync.

1/ If a resync is aborted we should record how far we got
 (recovery_cp) the last request that we know has completed
 (->curr_resync_completed) rather than the last request that was
 submitted (->curr_resync).

2/ When a resync aborts we still want to update the metadata with
 any changes, so set MD_CHANGE_DEVS even if we 'skip'.

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