diff options
author | NeilBrown <neilb@suse.de> | 2012-07-19 15:59:18 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2012-07-19 15:59:18 +1000 |
commit | 58e94ae18478c08229626daece2fc108a4a23261 (patch) | |
tree | b4711cd5bbd18c01ffd11d18b1a65c5eecebf8d5 /arch/arm/boot/dts | |
parent | a05b7ea03d72f36edb0cec05e8893803335c61a0 (diff) | |
download | kernel_goldelico_gta04-58e94ae18478c08229626daece2fc108a4a23261.zip kernel_goldelico_gta04-58e94ae18478c08229626daece2fc108a4a23261.tar.gz kernel_goldelico_gta04-58e94ae18478c08229626daece2fc108a4a23261.tar.bz2 |
md/raid1: close some possible races on write errors during resync
commit 4367af556133723d0f443e14ca8170d9447317cb
md/raid1: clear bad-block record when write succeeds.
Added a 'reschedule_retry' call possibility at the end of
end_sync_write, but didn't add matching code at the end of
sync_request_write. So if the writes complete very quickly, or
scheduling makes it seem that way, then we can miss rescheduling
the request and the resync could hang.
Also commit 73d5c38a9536142e062c35997b044e89166e063b
md: avoid races when stopping resync.
Fix a race condition in this same code in end_sync_write but didn't
make the change in sync_request_write.
This patch updates sync_request_write to fix both of those.
Patch is suitable for 3.1 and later kernels.
Reported-by: Alexander Lyakas <alex.bolshoy@gmail.com>
Original-version-by: Alexander Lyakas <alex.bolshoy@gmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'arch/arm/boot/dts')
0 files changed, 0 insertions, 0 deletions