summaryrefslogtreecommitdiffstats
path: root/Documentation/xz.txt
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2013-07-17 07:19:29 +0200
committerNeilBrown <neilb@suse.de>2013-07-18 06:18:04 +0200
commit30bc9b53878a9921b02e3b5bc4283ac1c6de102a (patch)
tree715adc122718ac9ea2c49b9953dee29d458d327a /Documentation/xz.txt
parentmd: Remove recent change which allows devices to skip recovery. (diff)
downloadlinux-30bc9b53878a9921b02e3b5bc4283ac1c6de102a.tar.xz
linux-30bc9b53878a9921b02e3b5bc4283ac1c6de102a.zip
md/raid1: fix bio handling problems in process_checks()
Recent change to use bio_copy_data() in raid1 when repairing an array is faulty. The underlying may have changed the bio in various ways using bio_advance and these need to be undone not just for the 'sbio' which is being copied to, but also the 'pbio' (primary) which is being copied from. So perform the reset on all bios that were read from and do it early. This also ensure that the sbio->bi_io_vec[j].bv_len passed to memcmp is correct. This fixes a crash during a 'check' of a RAID1 array. The crash was introduced in 3.10 so this is suitable for 3.10-stable. Cc: stable@vger.kernel.org (3.10) Reported-by: Joe Lawrence <joe.lawrence@stratus.com> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'Documentation/xz.txt')
0 files changed, 0 insertions, 0 deletions