]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
md/raid1/10: reset bio allocated from mempool
authorShaohua Li <shli@fb.com>
Fri, 25 Aug 2017 00:50:40 +0000 (17:50 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Sep 2017 06:22:11 +0000 (08:22 +0200)
commitb57c1b424549cc819534bc5d5774e8259d1df384
treee361e79fb8e109792c7df41ceefc623ce119497d
parentc3f9d09e70a3f2de08b3025e1baf69008693ada2
md/raid1/10: reset bio allocated from mempool

commit 208410b546207cfc4c832635fa46419cfa86b4cd upstream.

Data allocated from mempool doesn't always get initialized, this happens when
the data is reused instead of fresh allocation. In the raid1/10 case, we must
reinitialize the bios.

Reported-by: Jonathan G. Underwood <jonathan.underwood@gmail.com>
Fixes: f0250618361d(md: raid10: don't use bio's vec table to manage resync pages)
Fixes: 98d30c5812c3(md: raid1: don't use bio's vec table to manage resync pages)
Cc: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Shaohua Li <shli@fb.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/raid1.c
drivers/md/raid10.c