diff options
author | Jens Axboe <jaxboe@fusionio.com> | 2011-05-20 14:52:16 -0400 |
---|---|---|
committer | Jens Axboe <jaxboe@fusionio.com> | 2011-05-20 14:52:16 -0400 |
commit | 771949d03b4f5295f648f09141325fd478f6c7ce (patch) | |
tree | 5e69b743566cc8f1eaafffcd03554bbd2b84e028 /block/elevator.c | |
parent | 0eb8e885726a3a93206510092bbc7e39e272f6ef (diff) |
block: get rid of on-stack plugging debug checks
We don't need them anymore, so kill:
- REQ_ON_PLUG checks in various places
- !rq_mergeable() check in plug merging
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'block/elevator.c')
-rw-r--r-- | block/elevator.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/block/elevator.c b/block/elevator.c index 2a0b653c90fd..b0b38ce0dcb6 100644 --- a/block/elevator.c +++ b/block/elevator.c | |||
@@ -416,8 +416,6 @@ void elv_dispatch_sort(struct request_queue *q, struct request *rq) | |||
416 | struct list_head *entry; | 416 | struct list_head *entry; |
417 | int stop_flags; | 417 | int stop_flags; |
418 | 418 | ||
419 | BUG_ON(rq->cmd_flags & REQ_ON_PLUG); | ||
420 | |||
421 | if (q->last_merge == rq) | 419 | if (q->last_merge == rq) |
422 | q->last_merge = NULL; | 420 | q->last_merge = NULL; |
423 | 421 | ||
@@ -656,8 +654,6 @@ void __elv_add_request(struct request_queue *q, struct request *rq, int where) | |||
656 | 654 | ||
657 | rq->q = q; | 655 | rq->q = q; |
658 | 656 | ||
659 | BUG_ON(rq->cmd_flags & REQ_ON_PLUG); | ||
660 | |||
661 | if (rq->cmd_flags & REQ_SOFTBARRIER) { | 657 | if (rq->cmd_flags & REQ_SOFTBARRIER) { |
662 | /* barriers are scheduling boundary, update end_sector */ | 658 | /* barriers are scheduling boundary, update end_sector */ |
663 | if (rq->cmd_type == REQ_TYPE_FS || | 659 | if (rq->cmd_type == REQ_TYPE_FS || |