[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20140530150050.GD5499@linux.intel.com>
Date: Fri, 30 May 2014 11:00:50 -0400
From: Matthew Wilcox <willy@...ux.intel.com>
To: Matias Bjørling <m@...rling.me>
Cc: keith.busch@...el.com, sbradshaw@...ron.com, axboe@...nel.dk,
linux-kernel@...r.kernel.org, linux-nvme@...ts.infradead.org
Subject: Re: [PATCH v4] NVMe: basic conversion to blk-mq
On Thu, May 29, 2014 at 11:51:25PM +0200, Matias Bjørling wrote:
> -static int nvme_map_bio(struct nvme_queue *nvmeq, struct nvme_iod *iod,
> - struct bio *bio, enum dma_data_direction dma_dir, int psegs)
> +static int nvme_map_rq(struct nvme_queue *nvmeq, struct nvme_iod *iod,
> + struct request *req, enum dma_data_direction dma_dir,
> + int psegs)
> {
> - struct bio_vec bvec, bvprv;
> - struct bvec_iter iter;
> - struct scatterlist *sg = NULL;
> - int length = 0, nsegs = 0, split_len = bio->bi_iter.bi_size;
> - int first = 1;
> -
> - if (nvmeq->dev->stripe_size)
> - split_len = nvmeq->dev->stripe_size -
> - ((bio->bi_iter.bi_sector << 9) &
> - (nvmeq->dev->stripe_size - 1));
You take out stripe_size here, but don't appear to put it back in
anywhere else.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists