diff options
| author | Christoph Hellwig <hch@lst.de> | 2018-11-14 11:02:04 -0500 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2018-11-15 14:13:15 -0500 |
| commit | 8f4236d9008b0973a8281256ccfde6913cdec6cb (patch) | |
| tree | df22388e2396b014899b7db04d0e08c303adb1da /include/linux | |
| parent | e96c0d8336fdc5f1a6cae798bfa9c6e730001ad4 (diff) | |
block: remove QUEUE_FLAG_BYPASS and ->bypass
Unused since the removal of the legacy request code.
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/blk-cgroup.h | 6 | ||||
| -rw-r--r-- | include/linux/blkdev.h | 3 |
2 files changed, 1 insertions, 8 deletions
diff --git a/include/linux/blk-cgroup.h b/include/linux/blk-cgroup.h index 1b299e025e83..2c68efc603bd 100644 --- a/include/linux/blk-cgroup.h +++ b/include/linux/blk-cgroup.h | |||
| @@ -325,16 +325,12 @@ static inline struct blkcg_gq *__blkg_lookup(struct blkcg *blkcg, | |||
| 325 | * @q: request_queue of interest | 325 | * @q: request_queue of interest |
| 326 | * | 326 | * |
| 327 | * Lookup blkg for the @blkcg - @q pair. This function should be called | 327 | * Lookup blkg for the @blkcg - @q pair. This function should be called |
| 328 | * under RCU read lock and is guaranteed to return %NULL if @q is bypassing | 328 | * under RCU read loc. |
| 329 | * - see blk_queue_bypass_start() for details. | ||
| 330 | */ | 329 | */ |
| 331 | static inline struct blkcg_gq *blkg_lookup(struct blkcg *blkcg, | 330 | static inline struct blkcg_gq *blkg_lookup(struct blkcg *blkcg, |
| 332 | struct request_queue *q) | 331 | struct request_queue *q) |
| 333 | { | 332 | { |
| 334 | WARN_ON_ONCE(!rcu_read_lock_held()); | 333 | WARN_ON_ONCE(!rcu_read_lock_held()); |
| 335 | |||
| 336 | if (unlikely(blk_queue_bypass(q))) | ||
| 337 | return NULL; | ||
| 338 | return __blkg_lookup(blkcg, q, false); | 334 | return __blkg_lookup(blkcg, q, false); |
| 339 | } | 335 | } |
| 340 | 336 | ||
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index c961329be96b..dd1e53fd4acf 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h | |||
| @@ -548,7 +548,6 @@ struct request_queue { | |||
| 548 | 548 | ||
| 549 | struct mutex sysfs_lock; | 549 | struct mutex sysfs_lock; |
| 550 | 550 | ||
| 551 | int bypass_depth; | ||
| 552 | atomic_t mq_freeze_depth; | 551 | atomic_t mq_freeze_depth; |
| 553 | 552 | ||
| 554 | #if defined(CONFIG_BLK_DEV_BSG) | 553 | #if defined(CONFIG_BLK_DEV_BSG) |
| @@ -586,7 +585,6 @@ struct request_queue { | |||
| 586 | 585 | ||
| 587 | #define QUEUE_FLAG_STOPPED 1 /* queue is stopped */ | 586 | #define QUEUE_FLAG_STOPPED 1 /* queue is stopped */ |
| 588 | #define QUEUE_FLAG_DYING 2 /* queue being torn down */ | 587 | #define QUEUE_FLAG_DYING 2 /* queue being torn down */ |
| 589 | #define QUEUE_FLAG_BYPASS 3 /* act as dumb FIFO queue */ | ||
| 590 | #define QUEUE_FLAG_BIDI 4 /* queue supports bidi requests */ | 588 | #define QUEUE_FLAG_BIDI 4 /* queue supports bidi requests */ |
| 591 | #define QUEUE_FLAG_NOMERGES 5 /* disable merge attempts */ | 589 | #define QUEUE_FLAG_NOMERGES 5 /* disable merge attempts */ |
| 592 | #define QUEUE_FLAG_SAME_COMP 6 /* complete on same CPU-group */ | 590 | #define QUEUE_FLAG_SAME_COMP 6 /* complete on same CPU-group */ |
| @@ -630,7 +628,6 @@ bool blk_queue_flag_test_and_clear(unsigned int flag, struct request_queue *q); | |||
| 630 | #define blk_queue_stopped(q) test_bit(QUEUE_FLAG_STOPPED, &(q)->queue_flags) | 628 | #define blk_queue_stopped(q) test_bit(QUEUE_FLAG_STOPPED, &(q)->queue_flags) |
| 631 | #define blk_queue_dying(q) test_bit(QUEUE_FLAG_DYING, &(q)->queue_flags) | 629 | #define blk_queue_dying(q) test_bit(QUEUE_FLAG_DYING, &(q)->queue_flags) |
| 632 | #define blk_queue_dead(q) test_bit(QUEUE_FLAG_DEAD, &(q)->queue_flags) | 630 | #define blk_queue_dead(q) test_bit(QUEUE_FLAG_DEAD, &(q)->queue_flags) |
| 633 | #define blk_queue_bypass(q) test_bit(QUEUE_FLAG_BYPASS, &(q)->queue_flags) | ||
| 634 | #define blk_queue_init_done(q) test_bit(QUEUE_FLAG_INIT_DONE, &(q)->queue_flags) | 631 | #define blk_queue_init_done(q) test_bit(QUEUE_FLAG_INIT_DONE, &(q)->queue_flags) |
| 635 | #define blk_queue_nomerges(q) test_bit(QUEUE_FLAG_NOMERGES, &(q)->queue_flags) | 632 | #define blk_queue_nomerges(q) test_bit(QUEUE_FLAG_NOMERGES, &(q)->queue_flags) |
| 636 | #define blk_queue_noxmerges(q) \ | 633 | #define blk_queue_noxmerges(q) \ |
