From patchwork Thu Apr 14 12:02:23 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Lei X-Patchwork-Id: 8835311 Return-Path: X-Original-To: patchwork-linux-block@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 E80F9C0553 for ; Thu, 14 Apr 2016 12:12:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0DEAB201D3 for ; Thu, 14 Apr 2016 12:12:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 40A292017E for ; Thu, 14 Apr 2016 12:12:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754752AbcDNMDV (ORCPT ); Thu, 14 Apr 2016 08:03:21 -0400 Received: from mail-ob0-f196.google.com ([209.85.214.196]:35763 "EHLO mail-ob0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754603AbcDNMDT (ORCPT ); Thu, 14 Apr 2016 08:03:19 -0400 Received: by mail-ob0-f196.google.com with SMTP id 4so4863239obi.2; Thu, 14 Apr 2016 05:03:19 -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=FcZTTKsXYVsTlTHUXXepNAswtgIzXqo/fj+VSbyrz4U=; b=MURT7GLH0VuuqgIjPrFgv2HG3eUFAjpORVwnKcJYHQ/9ihtPVexMh/2oVKdHrXxn3J PUgtvSZIz7A7ryUNjMynCwX1uQEPu3kHa+CLIXFsfIDfE6Fc2HU4kDHlgXNwEw/wYKDy /Vg3OdAfnq0J6UuIgA04b5BNj5DJcnrS9Q6/QZ21x0NWnJB/SJCOxgUZkvlm2fb3wocw wr26Kwff1Q9u1MuhxjFFxP4TRzDzv7pjkNAD1aTGhBNXYC2f0GB0IfZQ0TJZpXXSslcV a/YPT1W4PpuaugDPEOAxIWaonYBkq0uPqMpbOt09ZmUmsOT3aM3KLsxSvWlBsK87UaGd il7w== 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=FcZTTKsXYVsTlTHUXXepNAswtgIzXqo/fj+VSbyrz4U=; b=eV9PPG7tOZUemaw3MA/4AZi8YhyPT/q5aZq+996/SpyeDpZ+6RdodJOZ58oQC9byyo v31Tc/Om3OZfOl543T64tgxt8uRfufUUQxEs+qw15y38d6I23CO7QxcWba452muUG3qY gNsjGkT+Fdo1YxakSTKwqmmCMVDzV7ttP8F9clbEBKlBzB1oTRQsGHWbLDVRcYKLq8iE x2q/FHSKeGU62iRkQJyqs3uJS6u62vu92NZotHyHo1NEo4sWWCBLTM1ptnhWa3lYTpYr 4A+m1XYuG4SYMNsWB08NRaufsU9W5QuwRemGLpOzJxWEF7BTTHaKPv+75l2Mgk8IrY4s dCew== X-Gm-Message-State: AOPr4FU3L8FTJ5niASm2yGPYKc54g2U86zvevPJQnj7i1j1qT+jeiUWznmbhh1llWy/BXQ== X-Received: by 10.60.67.101 with SMTP id m5mr7822966oet.19.1460635399061; Thu, 14 Apr 2016 05:03:19 -0700 (PDT) Received: from localhost ([12.228.154.70]) by smtp.gmail.com with ESMTPSA id j5sm13207270otc.27.2016.04.14.05.03.18 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Thu, 14 Apr 2016 05:03:18 -0700 (PDT) From: Ming Lei To: Jens Axboe , linux-kernel@vger.kernel.org Cc: linux-block@vger.kernel.org, Christoph Hellwig , Ming Lei , Jiri Kosina Subject: [PATCH v1 05/27] block: pktcdvd: use bio_get_base_vec() to retrive bvec table Date: Thu, 14 Apr 2016 20:02:23 +0800 Message-Id: <1460635375-28282-6-git-send-email-tom.leiming@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1460635375-28282-1-git-send-email-tom.leiming@gmail.com> References: <1460635375-28282-1-git-send-email-tom.leiming@gmail.com> Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org 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=ham 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/block/pktcdvd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/block/pktcdvd.c b/drivers/block/pktcdvd.c index d06c62e..8f37435 100644 --- a/drivers/block/pktcdvd.c +++ b/drivers/block/pktcdvd.c @@ -1298,7 +1298,8 @@ try_next_bio: static void pkt_start_write(struct pktcdvd_device *pd, struct packet_data *pkt) { int f; - struct bio_vec *bvec = pkt->w_bio->bi_io_vec; + /* need to fix this usage after multipage bvecs */ + struct bio_vec *bvec = bio_get_base_vec(pkt->w_bio); bio_reset(pkt->w_bio); pkt->w_bio->bi_iter.bi_sector = pkt->sector;