aboutsummaryrefslogtreecommitdiffstats
path: root/block/blk.h
diff options
context:
space:
mode:
Diffstat (limited to 'block/blk.h')
-rw-r--r--block/blk.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/block/blk.h b/block/blk.h
index fc3c41b2fd24..8d421156fefb 100644
--- a/block/blk.h
+++ b/block/blk.h
@@ -13,6 +13,11 @@ extern struct kmem_cache *blk_requestq_cachep;
13extern struct kobj_type blk_queue_ktype; 13extern struct kobj_type blk_queue_ktype;
14extern struct ida blk_queue_ida; 14extern struct ida blk_queue_ida;
15 15
16static inline void __blk_get_queue(struct request_queue *q)
17{
18 kobject_get(&q->kobj);
19}
20
16void init_request_from_bio(struct request *req, struct bio *bio); 21void init_request_from_bio(struct request *req, struct bio *bio);
17void blk_rq_bio_prep(struct request_queue *q, struct request *rq, 22void blk_rq_bio_prep(struct request_queue *q, struct request *rq,
18 struct bio *bio); 23 struct bio *bio);