]> git.baikalelectronics.ru Git - kernel.git/commit
raid5: set bio bi_vcnt 0 for discard request
authorShaohua Li <shli@kernel.org>
Sat, 19 Oct 2013 06:50:28 +0000 (14:50 +0800)
committerNeilBrown <neilb@suse.de>
Thu, 24 Oct 2013 01:57:36 +0000 (12:57 +1100)
commit6c7bb5c2538e4b872c50d668e7ed1e3ec22c4ec3
tree531c906f33e284c2916213fb994b632b03ab885a
parent2e56431e2e61c22a3ab85c3bf799df8c19f77b89
raid5: set bio bi_vcnt 0 for discard request

SCSI layer will add new payload for discard request. If two bios are merged
to one, the second bio has bi_vcnt 1 which is set in raid5. This will confuse
SCSI and cause oops.

Suitable for backport to 3.7+

Cc: stable@vger.kernel.org (v3.7+)
Reported-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Shaohua Li <shli@fusionio.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Acked-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/md/raid5.c