]> git.baikalelectronics.ru Git - kernel.git/commit
dm raid1: kcopyd should stop on error if errors handled
authorJonathan Brassow <jbrassow@redhat.com>
Fri, 10 Oct 2008 12:36:59 +0000 (13:36 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Fri, 10 Oct 2008 12:36:59 +0000 (13:36 +0100)
commit9652a2bd81f9423e9c2f99946d18b32e4f32ece8
tree2ea22c54a1eb2db8ad983883751040d884109e76
parente0709f3e50c8dd2aefe6f8dd8669a80fba91ce7a
dm raid1: kcopyd should stop on error if errors handled

dm-raid1 is setting the 'DM_KCOPYD_IGNORE_ERROR' flag unconditionally
when assigning kcopyd work.  kcopyd is responsible for copying an
assigned section of disk to one or more other disks.  The
'DM_KCOPYD_IGNORE_ERROR' flag affects kcopyd in the following way:

When not set:
kcopyd will immediately stop the copy operation when an error is
encountered.

When set:
kcopyd will try to proceed regardless of errors and try to continue
copying any remaining amount.

Since dm-raid1 tracks regions of the address space that are (or
are not) in sync and it now has the ability to handle these
errors, we can safely enable this optimization.  This optimization
is conditional on whether mirror error handling has been enabled.

Signed-off-by: Jonathan Brassow <jbrassow@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-raid1.c