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 majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/