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]

 



>>>>> "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>

-- 
Martin K. Petersen	Oracle Linux Engineering
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[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