aboutsummaryrefslogtreecommitdiffstats
path: root/block/blk.h
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2012-03-05 16:15:12 -0500
committerJens Axboe <axboe@kernel.dk>2012-03-06 15:27:23 -0500
commit5efd611351d1a847c72d74fb12ff4bd187c0cb2c (patch)
treebac28206d088426ab872eea98155cc100bd8d9b1 /block/blk.h
parent7ee9c5620504906e98451dc9a1945b2b9e892cb8 (diff)
blkcg: add blkcg_{init|drain|exit}_queue()
Currently block core calls directly into blk-throttle for init, drain and exit. This patch adds blkcg_{init|drain|exit}_queue() which wraps the blk-throttle functions. This is to give more control and visiblity to blkcg core layer for proper layering. Further patches will add logic common to blkcg policies to the functions. While at it, collapse blk_throtl_release() into blk_throtl_exit(). There's no reason to keep them separate. Signed-off-by: Tejun Heo <tj@kernel.org> Cc: Vivek Goyal <vgoyal@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk.h')
-rw-r--r--block/blk.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/block/blk.h b/block/blk.h
index 7422f3133c5d..de15f920b38f 100644
--- a/block/blk.h
+++ b/block/blk.h
@@ -236,7 +236,6 @@ extern bool blk_throtl_bio(struct request_queue *q, struct bio *bio);
236extern void blk_throtl_drain(struct request_queue *q); 236extern void blk_throtl_drain(struct request_queue *q);
237extern int blk_throtl_init(struct request_queue *q); 237extern int blk_throtl_init(struct request_queue *q);
238extern void blk_throtl_exit(struct request_queue *q); 238extern void blk_throtl_exit(struct request_queue *q);
239extern void blk_throtl_release(struct request_queue *q);
240#else /* CONFIG_BLK_DEV_THROTTLING */ 239#else /* CONFIG_BLK_DEV_THROTTLING */
241static inline bool blk_throtl_bio(struct request_queue *q, struct bio *bio) 240static inline bool blk_throtl_bio(struct request_queue *q, struct bio *bio)
242{ 241{
@@ -245,7 +244,6 @@ static inline bool blk_throtl_bio(struct request_queue *q, struct bio *bio)
245static inline void blk_throtl_drain(struct request_queue *q) { } 244static inline void blk_throtl_drain(struct request_queue *q) { }
246static inline int blk_throtl_init(struct request_queue *q) { return 0; } 245static inline int blk_throtl_init(struct request_queue *q) { return 0; }
247static inline void blk_throtl_exit(struct request_queue *q) { } 246static inline void blk_throtl_exit(struct request_queue *q) { }
248static inline void blk_throtl_release(struct request_queue *q) { }
249#endif /* CONFIG_BLK_DEV_THROTTLING */ 247#endif /* CONFIG_BLK_DEV_THROTTLING */
250 248
251#endif /* BLK_INTERNAL_H */ 249#endif /* BLK_INTERNAL_H */