From patchwork Thu Jun 29 18:31:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoph Hellwig X-Patchwork-Id: 9817675 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 72D946020A for ; Thu, 29 Jun 2017 18:31:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6F69528794 for ; Thu, 29 Jun 2017 18:31:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 618162851A; Thu, 29 Jun 2017 18:31:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CBA7D27F90 for ; Thu, 29 Jun 2017 18:31:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753274AbdF2Sbd (ORCPT ); Thu, 29 Jun 2017 14:31:33 -0400 Received: from bombadil.infradead.org ([65.50.211.133]:55702 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753357AbdF2Sba (ORCPT ); Thu, 29 Jun 2017 14:31:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=References:In-Reply-To:Message-Id: Date:Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=uL99md+EQYxPi11qQs3epfNH/l0hJX5S0T0ZAmcjb84=; b=M1aYyFS26PTtjMtWnNildZdG3 PBQX8KlXpwk2eG90GPxgnyMqb8nLB8Ip99WjR5M/APRJXlEWRIL9PU9X4iwjMNYB7U0aqr29E1DC5 3G0BnCceHhuoER+IsjCsWGjTmpGJisboAIOwRuI2qm+B+Rtqy7gLZbI5uALERArlPEO0cZbetDoRu pfbaxOM54dqWrF1dRgXmgGzxBBclo54zlKMQqf4AWDOkcl6lqbv+35rDZaF55Os+9PRaV9APIwftO gyth4MQF/mM1ycD8bPnzd4SYWFgAH3z2sfA8jAYpo4O9UkpW1905NL86tzxcdmRcE8n+LFSduCoOp jfPUpkPiQ==; Received: from [63.163.107.201] (helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.87 #1 (Red Hat Linux)) id 1dQeDl-0004qE-Fe; Thu, 29 Jun 2017 18:31:17 +0000 From: Christoph Hellwig To: Jens Axboe Cc: Dmitry Monakhov , "Martin K. Petersen" , Shaohua Li , linux-fsdevel@vger.kernel.org, linux-block@vger.kernel.org Subject: [PATCH 2/9] bio-integrity: bio_integrity_advance must update integrity seed Date: Thu, 29 Jun 2017 11:31:09 -0700 Message-Id: <20170629183116.28685-3-hch@lst.de> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170629183116.28685-1-hch@lst.de> References: <20170629183116.28685-1-hch@lst.de> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Dmitry Monakhov SCSI drivers do care about bip_seed so we must update it accordingly. Reviewed-by: Hannes Reinecke Reviewed-by: Christoph Hellwig Reviewed-by: Martin K. Petersen Signed-off-by: Dmitry Monakhov Signed-off-by: Christoph Hellwig --- block/bio-integrity.c | 1 + 1 file changed, 1 insertion(+) diff --git a/block/bio-integrity.c b/block/bio-integrity.c index b8a3a65f7364..8c2253c59edb 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);