diff options
Diffstat (limited to 'block/blk.h')
-rw-r--r-- | block/blk.h | 5 |
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; | |||
13 | extern struct kobj_type blk_queue_ktype; | 13 | extern struct kobj_type blk_queue_ktype; |
14 | extern struct ida blk_queue_ida; | 14 | extern struct ida blk_queue_ida; |
15 | 15 | ||
16 | static inline void __blk_get_queue(struct request_queue *q) | ||
17 | { | ||
18 | kobject_get(&q->kobj); | ||
19 | } | ||
20 | |||
16 | void init_request_from_bio(struct request *req, struct bio *bio); | 21 | void init_request_from_bio(struct request *req, struct bio *bio); |
17 | void blk_rq_bio_prep(struct request_queue *q, struct request *rq, | 22 | void blk_rq_bio_prep(struct request_queue *q, struct request *rq, |
18 | struct bio *bio); | 23 | struct bio *bio); |