diff options
author | Stefan Haberland <stefan.haberland@de.ibm.com> | 2015-03-04 08:29:47 -0500 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2015-03-25 06:49:40 -0400 |
commit | a5fd8ddce2af98c7f8199d37a0b866e98f4c0de0 (patch) | |
tree | 780b8dbdad94233ec4f0a8fe74cbbc1e62fe6420 /drivers/s390 | |
parent | e1d12d70f7467c3b26cbd0c14139dcddec88448d (diff) |
s390/dasd: remove setting of scheduler from driver
Remove the hard coded scheduler for the DASD device driver to enable
change of the scheduler during runtime. Set recommended deadline
scheduler via additional udev rule.
Signed-off-by: Stefan Haberland <stefan.haberland@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390')
-rw-r--r-- | drivers/s390/block/dasd.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/drivers/s390/block/dasd.c b/drivers/s390/block/dasd.c index 697a0b2158e6..26a51dc4278d 100644 --- a/drivers/s390/block/dasd.c +++ b/drivers/s390/block/dasd.c | |||
@@ -2965,8 +2965,6 @@ enum blk_eh_timer_return dasd_times_out(struct request *req) | |||
2965 | */ | 2965 | */ |
2966 | static int dasd_alloc_queue(struct dasd_block *block) | 2966 | static int dasd_alloc_queue(struct dasd_block *block) |
2967 | { | 2967 | { |
2968 | int rc; | ||
2969 | |||
2970 | block->request_queue = blk_init_queue(do_dasd_request, | 2968 | block->request_queue = blk_init_queue(do_dasd_request, |
2971 | &block->request_queue_lock); | 2969 | &block->request_queue_lock); |
2972 | if (block->request_queue == NULL) | 2970 | if (block->request_queue == NULL) |
@@ -2974,14 +2972,7 @@ static int dasd_alloc_queue(struct dasd_block *block) | |||
2974 | 2972 | ||
2975 | block->request_queue->queuedata = block; | 2973 | block->request_queue->queuedata = block; |
2976 | 2974 | ||
2977 | elevator_exit(block->request_queue->elevator); | 2975 | return 0; |
2978 | block->request_queue->elevator = NULL; | ||
2979 | mutex_lock(&block->request_queue->sysfs_lock); | ||
2980 | rc = elevator_init(block->request_queue, "deadline"); | ||
2981 | if (rc) | ||
2982 | blk_cleanup_queue(block->request_queue); | ||
2983 | mutex_unlock(&block->request_queue->sysfs_lock); | ||
2984 | return rc; | ||
2985 | } | 2976 | } |
2986 | 2977 | ||
2987 | /* | 2978 | /* |