From patchwork Tue Apr 5 12:07:35 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Lei X-Patchwork-Id: 8759011 Return-Path: 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 C70D99F36E for ; Wed, 6 Apr 2016 07:56:25 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0C2EC20219 for ; Wed, 6 Apr 2016 07:56:25 +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 121F6201D3 for ; Wed, 6 Apr 2016 07:56:24 +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 u367rjrL015240; Wed, 6 Apr 2016 03:53:45 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id u35C9207003743 for ; Tue, 5 Apr 2016 08:09:02 -0400 Received: from mx1.redhat.com (ext-mx10.extmail.prod.ext.phx2.redhat.com [10.5.110.39]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u35C92fD004513 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 5 Apr 2016 08:09:02 -0400 Received: from mail-pf0-f193.google.com (mail-pf0-f193.google.com [209.85.192.193]) (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 9E9B664445; Tue, 5 Apr 2016 12:09:01 +0000 (UTC) Received: by mail-pf0-f193.google.com with SMTP id e190so1196952pfe.0; Tue, 05 Apr 2016 05:09:01 -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=PrcbEiUQtOz0r7K6COsQX+3C18NOoxjmjslvEfO+pmuvmEjT8UX2F+raWGsXiTMKML 65nVi4h8q9pDQ42PWvsWYMuTC/PriLPc4z9FTyAqPeaXYx27L4steX71coHVKd6K+v8c +XlGraTYyLJvnf7NpaI2FhchKeG5SfykEW2BP93ywpQSnuG/wy7mmkLj2VPhYiR1AZN4 4YDXRDIlbeyv+SSdaXRI6XawCA12iQMHFsDsxODCWMksiMm4mk/Cy+wFyANNoUbxvJnD 1EC07Cu+FwxXCuLwsmk1pDHbQ7oD1Me1dShah8RoaYkvgrPHxrjhpgMT+KudFx+yuNTa aaMA== 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=SDCiCj74xCfBRK6Cenyk7pV2IqKR271/wWFRITOYWUa7ThMw26ocvLdWJI9fPNvn65 k49z+bD3LEXHqSzXGVimJ99jAdyv5WE1WuWsqnVgnV6vnTmJVQE/zSiWOrsskcZNWFbj SCTdY2IZa40mW9cgq04FVV0nEmv2O9VG2ghAkmQco2fqdfItTxp5tG/c0SjgW3Er5svF UDF3x0IfCu8r+eiaSthsVJsQlbds5OCsQMHNpji8y9KENGow+6JQ4FV1pMuYchXQx2b3 Hv6CNCQUNDkJUvWV7Ca5f0JMtR8yYPi2HAY/+KBqIo74isl7GfTI01d3a41jv0qO+jG1 HzrA== X-Gm-Message-State: AD7BkJK+YLMarTt380sxzShP1uc4a+959zWP6kl0M/IVcpU+R58W5U+MFk9t30Z0ocaFdg== X-Received: by 10.98.17.151 with SMTP id 23mr28440276pfr.37.1459858141187; Tue, 05 Apr 2016 05:09:01 -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 i1sm46590872pfj.17.2016.04.05.05.08.58 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Tue, 05 Apr 2016 05:09:00 -0700 (PDT) From: Ming Lei To: Jens Axboe , linux-kernel@vger.kernel.org Date: Tue, 5 Apr 2016 20:07:35 +0800 Message-Id: <1459858062-21075-6-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-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Tue, 05 Apr 2016 12:09:01 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Tue, 05 Apr 2016 12:09:01 +0000 (UTC) for IP:'209.85.192.193' DOMAIN:'mail-pf0-f193.google.com' HELO:'mail-pf0-f193.google.com' FROM:'tom.leiming@gmail.com' RCPT:'' X-RedHat-Spam-Score: -0.802 (BAYES_40, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SPF_PASS) 209.85.192.193 mail-pf0-f193.google.com 209.85.192.193 mail-pf0-f193.google.com X-Scanned-By: MIMEDefang 2.68 on 10.5.11.27 X-Scanned-By: MIMEDefang 2.78 on 10.5.110.39 X-loop: dm-devel@redhat.com X-Mailman-Approved-At: Wed, 06 Apr 2016 03:52:39 -0400 Cc: Christoph Hellwig , Mike Snitzer , Boaz Harrosh , Ming Lei , linux-block@vger.kernel.org, "maintainer:DEVICE-MAPPER LVM, Shaohua Li , linux-raid@vger.kernel.org open list:SOFTWARE RAID Multiple DisksSUPPORT" , Alasdair Kergon Subject: [dm-devel] [PATCH 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 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 Signed-off-by: Ming Lei --- drivers/md/dm-bufio.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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;