Merge tag 'tif-task_work.arch-2020-12-14' of git://git.kernel.dk/linux-block
[linux-2.6-microblaze.git] / block / kyber-iosched.c
index a38c5ab..dc89199 100644 (file)
@@ -359,7 +359,7 @@ static unsigned int kyber_sched_tags_shift(struct request_queue *q)
         * All of the hardware queues have the same depth, so we can just grab
         * the shift of the first one.
         */
-       return q->queue_hw_ctx[0]->sched_tags->bitmap_tags.sb.shift;
+       return q->queue_hw_ctx[0]->sched_tags->bitmap_tags->sb.shift;
 }
 
 static struct kyber_queue_data *kyber_queue_data_alloc(struct request_queue *q)
@@ -502,7 +502,7 @@ static int kyber_init_hctx(struct blk_mq_hw_ctx *hctx, unsigned int hctx_idx)
        khd->batching = 0;
 
        hctx->sched_data = khd;
-       sbitmap_queue_min_shallow_depth(&hctx->sched_tags->bitmap_tags,
+       sbitmap_queue_min_shallow_depth(hctx->sched_tags->bitmap_tags,
                                        kqd->async_depth);
 
        return 0;
@@ -573,7 +573,7 @@ static bool kyber_bio_merge(struct blk_mq_hw_ctx *hctx, struct bio *bio,
        bool merged;
 
        spin_lock(&kcq->lock);
-       merged = blk_mq_bio_list_merge(hctx->queue, rq_list, bio, nr_segs);
+       merged = blk_bio_list_merge(hctx->queue, rq_list, bio, nr_segs);
        spin_unlock(&kcq->lock);
 
        return merged;