Skip to content
Commit 37c61ff3 authored by Shaohua Li's avatar Shaohua Li Committed by NeilBrown
Browse files

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: default avatarJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: default avatarShaohua Li <shli@fusionio.com>
Signed-off-by: default avatarNeilBrown <neilb@suse.de>
Acked-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 905b0297
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment