RE: [EXT] Re: IO error on DIF/DIX supported array

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

 



Hi Martin,
Thanks a lot, below patch have worked, kindly post it.

Thanks,
~Saurav

> -----Original Message-----
> From: Martin K. Petersen <martin.petersen@xxxxxxxxxx>
> Sent: Wednesday, February 15, 2023 7:46 AM
> To: Saurav Kashyap <skashyap@xxxxxxxxxxx>
> Cc: Martin K. Petersen <martin.petersen@xxxxxxxxxx>; linux-scsi <linux-
> scsi@xxxxxxxxxxxxxxx>; Girish Basrur <gbasrur@xxxxxxxxxxx>
> Subject: [EXT] Re: IO error on DIF/DIX supported array
> 
> External Email
> 
> ----------------------------------------------------------------------
> 
> Saurav,
> 
> > 1) Is there a specific reason for not copying the bip_flags in
> > bio_integrity_clone function?
> 
> No, that's a bug. Not sure how that line got lost. Can you please try
> the following patch?
> 
> Thanks!
> 
> --
> Martin K. Petersen	Oracle Linux Engineering
> 
> diff --git a/block/bio-integrity.c b/block/bio-integrity.c
> index 3f5685c00e36..91ffee6fc8cb 100644
> --- a/block/bio-integrity.c
> +++ b/block/bio-integrity.c
> @@ -418,6 +418,7 @@ int bio_integrity_clone(struct bio *bio, struct bio
> *bio_src,
> 
>  	bip->bip_vcnt = bip_src->bip_vcnt;
>  	bip->bip_iter = bip_src->bip_iter;
> +	bip->bip_flags = bip_src->bip_flags & ~BIP_BLOCK_INTEGRITY;
> 
>  	return 0;
>  }




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux