blk-mq: export blk_mq_free_request()
authorJens Axboe <axboe@fb.com>
Mon, 17 Nov 2014 17:40:48 +0000 (10:40 -0700)
committerJens Axboe <axboe@fb.com>
Mon, 17 Nov 2014 17:40:48 +0000 (10:40 -0700)
Drivers that know they are blk-mq should just use this function
instead of calling through blk_put_request().

Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq.c

index 06ab0683a1f16c716ec4c4e19bcb64061cb6ab27..fdf12152946e2cf167e4bbf8ef19028d0fadaa1d 100644 (file)
@@ -280,6 +280,7 @@ void blk_mq_free_request(struct request *rq)
        hctx = q->mq_ops->map_queue(q, ctx->cpu);
        __blk_mq_free_request(hctx, ctx, rq);
 }
+EXPORT_SYMBOL_GPL(blk_mq_free_request);
 
 inline void __blk_mq_end_request(struct request *rq, int error)
 {