Re: [patch 1/2]raid5: set bio bi_vcnt 0 for discard request

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 23 Oct 2013 04:07:19 -0400 "Martin K. Petersen"
<martin.petersen@xxxxxxxxxx> wrote:

> >>>>> "Shaohua" == Shaohua Li <shli@xxxxxxxxxx> writes:
> 
> Shaohua> SCSI layer will add new payload for discard request. If two
> Shaohua> bios are merged to one, the second bio has bi_vcnt 1 which is
> Shaohua> set in raid5. This will confuse SCSI and cause oops.
> 
> A discard bio does not have a payload prior to the SCSI command being
> prepared so vcnt should indeed be 0.
> 
> Acked-by: Martin K. Petersen <martin.petersen@xxxxxxxxxx>
> 

Thanks Martin.  I'll be sending this to Linus shortly.

NeilBrown

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux