Message ID | 1460635375-28282-21-git-send-email-tom.leiming@gmail.com (mailing list archive) |
---|---|
State | Superseded, archived |
Delegated to: | Mike Snitzer |
Headers | show
Return-Path: <dm-devel-bounces@redhat.com> X-Original-To: patchwork-dm-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 79F3D9F39D for <patchwork-dm-devel@patchwork.kernel.org>; Mon, 18 Apr 2016 07:27:37 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B46E320254 for <patchwork-dm-devel@patchwork.kernel.org>; Mon, 18 Apr 2016 07:27:36 +0000 (UTC) Received: from mx3-phx2.redhat.com (mx3-phx2.redhat.com [209.132.183.24]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3904420259 for <patchwork-dm-devel@patchwork.kernel.org>; Mon, 18 Apr 2016 07:27:35 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by mx3-phx2.redhat.com (8.13.8/8.13.8) with ESMTP id u3I7O6oQ014394; Mon, 18 Apr 2016 03:24:06 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id u3EC3gpR026791 for <dm-devel@listman.util.phx.redhat.com>; Thu, 14 Apr 2016 08:03:42 -0400 Received: from mx1.redhat.com (ext-mx05.extmail.prod.ext.phx2.redhat.com [10.5.110.29]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u3EC3gSv022667 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 14 Apr 2016 08:03:42 -0400 Received: from mail-oi0-f66.google.com (mail-oi0-f66.google.com [209.85.218.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 367B53D5; Thu, 14 Apr 2016 12:03:41 +0000 (UTC) Received: by mail-oi0-f66.google.com with SMTP id v67so9555424oie.0; Thu, 14 Apr 2016 05:03:41 -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=uWArVHBGuWdqe3BE0hN04z6z5PYm3oskTvuUxn87+30=; b=XdgGdaU2Xf1Ipx+cAcKC7UA6XzPMco9oc5SYbia9ppEVLmNKg5pt2h9a/zI5s3P7oV zNX1WUVSGMYDfM+p2bzUTJi8YKFiyu1tFoIDzY/MgJXgL9kneaVOA1tjPutMRxf7EZ1q DiOIEUzUTawQfWZDy9JLEkGCrrCwwYlmRa8v4dQOnzsAozpOXvFch6JjHMoibMIvOLnl Xrur+4ivFw2hgSxp8yoKoZO+3gqrnefSCl0vnSG1ytdn3VnOpy5jNBEIGtOepl0tSn2u Pq3O57tSKWH7q1aSo3y1v5DrLpU7tdOoqzdfjSZ6EF0G+fQSfJJ27UTpqmQTiFIc0qTc 2nHA== 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=uWArVHBGuWdqe3BE0hN04z6z5PYm3oskTvuUxn87+30=; b=g89KUqZ4zKe2IwWjGiLIe5lplM2kjjpE//qaB5UIZN8ZQlk2QMtreNmYpHIysyg+Gc gUxuWLZ3+w1K+7Zvq6dDa6zyTlL96OAjQxy3tJdUvOWzT/6HNTi2SljPGLKldvwBIPkp TklK76SOdXdE3knVDMHxRwib8IS/ryDqrbsKMWCD34dGcBgVD0B1AuY+3agZDYs/gXuZ pRzFFiDUhseANvWJDR3Lk7VF9r01W+fyPyOs8xU4qrY8XUFMa97IvIS1bzHfZX8jwYmW 2xmibf15NCGOOfGX1NufERCO969ho+l7uzAyn/w+/jF6XZOgKHQR7A2tshpNLfMoW7vU Awig== X-Gm-Message-State: AOPr4FU+w1QCmkngVWXNXUMzHk8DF6XrS/qR220qS9ElcvfrI+/P/yKuzX0x5umuz1/Dsg== X-Received: by 10.157.19.93 with SMTP id q29mr6857510otq.171.1460635420715; Thu, 14 Apr 2016 05:03:40 -0700 (PDT) Received: from localhost ([12.228.154.70]) by smtp.gmail.com with ESMTPSA id 91sm13210882oth.17.2016.04.14.05.03.40 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Thu, 14 Apr 2016 05:03:40 -0700 (PDT) From: Ming Lei <tom.leiming@gmail.com> To: Jens Axboe <axboe@fb.com>, linux-kernel@vger.kernel.org Date: Thu, 14 Apr 2016 20:02:38 +0800 Message-Id: <1460635375-28282-21-git-send-email-tom.leiming@gmail.com> In-Reply-To: <1460635375-28282-1-git-send-email-tom.leiming@gmail.com> References: <1460635375-28282-1-git-send-email-tom.leiming@gmail.com> X-RedHat-Spam-Score: -0.821 (BAYES_40, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_PASS) 209.85.218.66 mail-oi0-f66.google.com 209.85.218.66 mail-oi0-f66.google.com <tom.leiming@gmail.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-Scanned-By: MIMEDefang 2.78 on 10.5.110.29 X-loop: dm-devel@redhat.com X-Mailman-Approved-At: Mon, 18 Apr 2016 03:22:14 -0400 Cc: Christoph Hellwig <hch@infradead.org>, Mike Snitzer <snitzer@redhat.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 v1 20/27] dm: dm-bufio.c: use bio_set_vec_table() 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=-7.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, 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-bufio.c b/drivers/md/dm-bufio.c index cd77216..0e48ad7 100644 --- a/drivers/md/dm-bufio.c +++ b/drivers/md/dm-bufio.c @@ -624,8 +624,7 @@ static void use_inline_bio(struct dm_buffer *b, int rw, sector_t block, int len; bio_init(&b->bio); - b->bio.bi_io_vec = b->bio_vec; - b->bio.bi_max_vecs = DM_BUFIO_INLINE_VECS; + bio_set_vec_table(&b->bio, b->bio_vec, DM_BUFIO_INLINE_VECS); b->bio.bi_iter.bi_sector = block << b->c->sectors_per_block_bits; b->bio.bi_bdev = b->c->bdev; b->bio.bi_end_io = inline_endio;
Signed-off-by: Ming Lei <tom.leiming@gmail.com> --- drivers/md/dm-bufio.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)