[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <3a7e328e-dbb9-cd15-d71c-8370787cf4ea@suse.de>
Date: Wed, 5 Apr 2017 08:34:42 +0200
From: Hannes Reinecke <hare@...e.de>
To: Dmitry Monakhov <dmonakhov@...nvz.org>,
linux-kernel@...r.kernel.org, linux-block@...r.kernel.org,
martin.petersen@...cle.com
Subject: Re: [PATCH 3/9] bio-integrity: bio_integrity_advance must update
integrity seed
On 04/04/2017 08:56 PM, Dmitry Monakhov wrote:
> SCSI drivers do care about bip_seed so we must update it accordingly.
>
> Signed-off-by: Dmitry Monakhov <dmonakhov@...nvz.org>
> ---
> block/bio-integrity.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/block/bio-integrity.c b/block/bio-integrity.c
> index b5009a8..82a6ffb 100644
> --- a/block/bio-integrity.c
> +++ b/block/bio-integrity.c
> @@ -425,6 +425,7 @@ void bio_integrity_advance(struct bio *bio, unsigned int bytes_done)
> struct blk_integrity *bi = bdev_get_integrity(bio->bi_bdev);
> unsigned bytes = bio_integrity_bytes(bi, bytes_done >> 9);
>
> + bip->bip_iter.bi_sector += bytes_done >> 9;
> bvec_iter_advance(bip->bip_vec, &bip->bip_iter, bytes);
> }
> EXPORT_SYMBOL(bio_integrity_advance);
>
Odd that we've missed that one...
Reviewed-by: Hannes Reinecke <hare@...e.com>
Cheers,
Hannes
--
Dr. Hannes Reinecke Teamlead Storage & Networking
hare@...e.de +49 911 74053 688
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton
HRB 21284 (AG Nürnberg)
Powered by blists - more mailing lists