diff options
Diffstat (limited to 'block/elevator.c')
-rw-r--r-- | block/elevator.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/block/elevator.c b/block/elevator.c index 45ca1e34f582..b0b38ce0dcb6 100644 --- a/block/elevator.c +++ b/block/elevator.c | |||
@@ -155,13 +155,8 @@ static struct elevator_type *elevator_get(const char *name) | |||
155 | 155 | ||
156 | e = elevator_find(name); | 156 | e = elevator_find(name); |
157 | if (!e) { | 157 | if (!e) { |
158 | char elv[ELV_NAME_MAX + strlen("-iosched")]; | ||
159 | |||
160 | spin_unlock(&elv_list_lock); | 158 | spin_unlock(&elv_list_lock); |
161 | 159 | request_module("%s-iosched", name); | |
162 | snprintf(elv, sizeof(elv), "%s-iosched", name); | ||
163 | |||
164 | request_module("%s", elv); | ||
165 | spin_lock(&elv_list_lock); | 160 | spin_lock(&elv_list_lock); |
166 | e = elevator_find(name); | 161 | e = elevator_find(name); |
167 | } | 162 | } |
@@ -421,8 +416,6 @@ void elv_dispatch_sort(struct request_queue *q, struct request *rq) | |||
421 | struct list_head *entry; | 416 | struct list_head *entry; |
422 | int stop_flags; | 417 | int stop_flags; |
423 | 418 | ||
424 | BUG_ON(rq->cmd_flags & REQ_ON_PLUG); | ||
425 | |||
426 | if (q->last_merge == rq) | 419 | if (q->last_merge == rq) |
427 | q->last_merge = NULL; | 420 | q->last_merge = NULL; |
428 | 421 | ||
@@ -661,8 +654,6 @@ void __elv_add_request(struct request_queue *q, struct request *rq, int where) | |||
661 | 654 | ||
662 | rq->q = q; | 655 | rq->q = q; |
663 | 656 | ||
664 | BUG_ON(rq->cmd_flags & REQ_ON_PLUG); | ||
665 | |||
666 | if (rq->cmd_flags & REQ_SOFTBARRIER) { | 657 | if (rq->cmd_flags & REQ_SOFTBARRIER) { |
667 | /* barriers are scheduling boundary, update end_sector */ | 658 | /* barriers are scheduling boundary, update end_sector */ |
668 | if (rq->cmd_type == REQ_TYPE_FS || | 659 | if (rq->cmd_type == REQ_TYPE_FS || |