Message ID | 1459858062-21075-4-git-send-email-tom.leiming@gmail.com (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show
Return-Path: <dm-devel-bounces@redhat.com> X-Original-To: patchwork-dm-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 4CA29C0553 for <patchwork-dm-devel@patchwork.kernel.org>; Wed, 6 Apr 2016 07:56:11 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 77C2620219 for <patchwork-dm-devel@patchwork.kernel.org>; Wed, 6 Apr 2016 07:56:10 +0000 (UTC) Received: from mx6-phx2.redhat.com (mx6-phx2.redhat.com [209.132.183.39]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8DAE2201D3 for <patchwork-dm-devel@patchwork.kernel.org>; Wed, 6 Apr 2016 07:56:09 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by mx6-phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u367rS5D002386; Wed, 6 Apr 2016 03:53:28 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id u35C8dW5002970 for <dm-devel@listman.util.phx.redhat.com>; Tue, 5 Apr 2016 08:08:39 -0400 Received: from mx1.redhat.com (ext-mx02.extmail.prod.ext.phx2.redhat.com [10.5.110.26]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u35C8d8h009962 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 5 Apr 2016 08:08:39 -0400 Received: from mail-pa0-f66.google.com (mail-pa0-f66.google.com [209.85.220.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 944AC8E750; Tue, 5 Apr 2016 12:08:37 +0000 (UTC) Received: by mail-pa0-f66.google.com with SMTP id 1so1136432pal.3; Tue, 05 Apr 2016 05:08:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=dK4+rAwdojLgpafSZl8VrkHQEJa7YqVbifzHqXls3TQ=; b=OkiB4Zf0Kf+7yMiU+t7IXYBQnkC2PwQZ+45s4VQmczhEjJAMQeqodO3Z4Q1GTMsPwM 8N0U4/lrtA1sUepsha2gQsXhUF7vwV80sUvl0YNqBTdGPaNd0QUIK1DDtPzSaWs93RG3 sE/H3HWIG6uC7H+gRDe3bwwMeNQGEr5T1eM9l9slwoBiX08L9RbSUZcYkR5dZJyIoVSH yq2T10idP/6lMjGzybuL79q6jQvdCFedBhOv1IBnOx73TvLDcH81Hj0Uegy1hnhHWpEc Uyj3nbsk6OClbazPFhO35SzvklVQ8BZjZbwmqWMXVCX180Qk44O813XPXYHldsknzvOW MyAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=dK4+rAwdojLgpafSZl8VrkHQEJa7YqVbifzHqXls3TQ=; b=Uwznrw48DicjbUZQdhVV0cuD6G7NiHcxTIRZxKziukWgW4Zk1sTM0IgIwqSfqqnL7+ PL28EbqBZ0yhA2sDzhYJGuW73CglxdvWZkwCk9xSGi6NKWsWSl6gQ6ECbQdM6Uw/T4ci FPMk/wok6JI6WKvcdzTVB4cIIHz/DOeebyGsL5IUUPyKjuRhBmkBbguMTCYHpHLG8jvB UIkmr9/lkMMR0/PVMQliaAaVgf3KC3bLLjLSFiVnXu/U5+UrffnMjazDi81AC5nAwA5r /75NALaiFgGWKSUM7CMREnq+ZwWzR0Aih5PiRC9zzYrMUFXhcu5Svb79O2HJOhcP1xNn x75A== X-Gm-Message-State: AD7BkJK0u9iOhzk1NoaQjOqcuyO2gc+5noSInX/Cz/aQrSVdAHwPv0mQaI7Fz8Wn6h8PqA== X-Received: by 10.67.21.167 with SMTP id hl7mr61033150pad.16.1459858116996; Tue, 05 Apr 2016 05:08:36 -0700 (PDT) Received: from localhost (56.34.213.162.lcy-01.canonistack.canonical.com. [162.213.34.56]) by smtp.gmail.com with ESMTPSA id b82sm27801943pfd.89.2016.04.05.05.08.35 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Tue, 05 Apr 2016 05:08:36 -0700 (PDT) From: Ming Lei <tom.leiming@gmail.com> To: Jens Axboe <axboe@fb.com>, linux-kernel@vger.kernel.org Date: Tue, 5 Apr 2016 20:07:33 +0800 Message-Id: <1459858062-21075-4-git-send-email-tom.leiming@gmail.com> In-Reply-To: <1459858062-21075-1-git-send-email-tom.leiming@gmail.com> References: <1459858062-21075-1-git-send-email-tom.leiming@gmail.com> X-RedHat-Spam-Score: -0.001 (BAYES_50, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SPF_PASS) 209.85.220.66 mail-pa0-f66.google.com 209.85.220.66 mail-pa0-f66.google.com <tom.leiming@gmail.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-Scanned-By: MIMEDefang 2.75 on 10.5.110.26 X-loop: dm-devel@redhat.com X-Mailman-Approved-At: Wed, 06 Apr 2016 03:52:39 -0400 Cc: Christoph Hellwig <hch@infradead.org>, Mike Snitzer <snitzer@redhat.com>, Boaz Harrosh <boaz@plexistor.com>, Ming Lei <tom.leiming@gmail.com>, linux-block@vger.kernel.org, "maintainer:DEVICE-MAPPER LVM, Shaohua Li <shli@kernel.org>, linux-raid@vger.kernel.org open list:SOFTWARE RAID Multiple DisksSUPPORT" <dm-devel@redhat.com>, Alasdair Kergon <agk@redhat.com> Subject: [dm-devel] [PATCH 18/27] dm: dm-io.c: use bio_get_base_vec() X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: device-mapper development <dm-devel.redhat.com> List-Unsubscribe: <https://www.redhat.com/mailman/options/dm-devel>, <mailto:dm-devel-request@redhat.com?subject=unsubscribe> List-Archive: <https://www.redhat.com/archives/dm-devel> List-Post: <mailto:dm-devel@redhat.com> List-Help: <mailto:dm-devel-request@redhat.com?subject=help> List-Subscribe: <https://www.redhat.com/mailman/listinfo/dm-devel>, <mailto:dm-devel-request@redhat.com?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/md/dm-io.c b/drivers/md/dm-io.c index 06d426e..6b0e466 100644 --- a/drivers/md/dm-io.c +++ b/drivers/md/dm-io.c @@ -221,7 +221,12 @@ static void bio_dp_init(struct dpages *dp, struct bio *bio) { dp->get_page = bio_get_page; dp->next_page = bio_next_page; - dp->context_ptr = __bvec_iter_bvec(bio->bi_io_vec, bio->bi_iter); + + /* + * need to fix both bio_get_page() and bio_next_page() + * before multipage bvecs + */ + dp->context_ptr = bio_get_base_vec(bio); dp->context_u = bio->bi_iter.bi_bvec_done; }
Signed-off-by: Ming Lei <tom.leiming@gmail.com> --- drivers/md/dm-io.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)