diff options
author | majianpeng <majianpeng@gmail.com> | 2012-04-12 16:04:47 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2012-04-12 16:04:47 +1000 |
commit | f4380a915823dbed0bf8e3cf502ebcf2b7c7f833 (patch) | |
tree | 1326179e1f715f33495066b2fe4b99acf1bbdd96 /drivers/md/dm-queue-length.c | |
parent | 9e41dd35b39c2cf40767332b8f914d7afe25cc40 (diff) | |
download | blackbird-op-linux-f4380a915823dbed0bf8e3cf502ebcf2b7c7f833.tar.gz blackbird-op-linux-f4380a915823dbed0bf8e3cf502ebcf2b7c7f833.zip |
md/raid1,raid10: Fix calculation of 'vcnt' when processing error recovery.
If r1bio->sectors % 8 != 0,then the memcmp and a later
memcpy will omit the last bio_vec.
This is suitable for any stable kernel since 3.1 when bad-block
management was introduced.
Cc: stable@vger.kernel.org
Signed-off-by: majianpeng <majianpeng@gmail.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/dm-queue-length.c')
0 files changed, 0 insertions, 0 deletions