Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754792AbcDNMDW (ORCPT ); Thu, 14 Apr 2016 08:03:22 -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 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-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 656 Lines: 21 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; -- 1.9.1