Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758210AbcDEL7b (ORCPT ); Tue, 5 Apr 2016 07:59:31 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:35091 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752396AbcDEL72 (ORCPT ); Tue, 5 Apr 2016 07:59:28 -0400 From: Ming Lei To: Jens Axboe , linux-kernel@vger.kernel.org Cc: linux-block@vger.kernel.org, Christoph Hellwig , Boaz Harrosh , Ming Lei , Jiri Kosina Subject: [PATCH 05/27] block: pktcdvd: use bio_get_base_vec() to retrive bvec table Date: Tue, 5 Apr 2016 19:56:50 +0800 Message-Id: <1459857443-20611-6-git-send-email-tom.leiming@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1459857443-20611-1-git-send-email-tom.leiming@gmail.com> References: <1459857443-20611-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