diff options
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/cfq-iosched.c | 4 | ||||
-rw-r--r-- | drivers/block/floppy.c | 2 | ||||
-rw-r--r-- | drivers/block/noop-iosched.c | 1 |
3 files changed, 3 insertions, 4 deletions
diff --git a/drivers/block/cfq-iosched.c b/drivers/block/cfq-iosched.c index 5281f8e70510..ecacca9c877e 100644 --- a/drivers/block/cfq-iosched.c +++ b/drivers/block/cfq-iosched.c | |||
@@ -2059,10 +2059,8 @@ static void cfq_put_cfqd(struct cfq_data *cfqd) | |||
2059 | if (!atomic_dec_and_test(&cfqd->ref)) | 2059 | if (!atomic_dec_and_test(&cfqd->ref)) |
2060 | return; | 2060 | return; |
2061 | 2061 | ||
2062 | blk_put_queue(q); | ||
2063 | |||
2064 | cfq_shutdown_timer_wq(cfqd); | 2062 | cfq_shutdown_timer_wq(cfqd); |
2065 | q->elevator->elevator_data = NULL; | 2063 | blk_put_queue(q); |
2066 | 2064 | ||
2067 | mempool_destroy(cfqd->crq_pool); | 2065 | mempool_destroy(cfqd->crq_pool); |
2068 | kfree(cfqd->crq_hash); | 2066 | kfree(cfqd->crq_hash); |
diff --git a/drivers/block/floppy.c b/drivers/block/floppy.c index 00895477155e..5eadbb9d4d71 100644 --- a/drivers/block/floppy.c +++ b/drivers/block/floppy.c | |||
@@ -177,7 +177,7 @@ static int print_unex = 1; | |||
177 | #include <linux/interrupt.h> | 177 | #include <linux/interrupt.h> |
178 | #include <linux/init.h> | 178 | #include <linux/init.h> |
179 | #include <linux/devfs_fs_kernel.h> | 179 | #include <linux/devfs_fs_kernel.h> |
180 | #include <linux/device.h> | 180 | #include <linux/platform_device.h> |
181 | #include <linux/buffer_head.h> /* for invalidate_buffers() */ | 181 | #include <linux/buffer_head.h> /* for invalidate_buffers() */ |
182 | 182 | ||
183 | /* | 183 | /* |
diff --git a/drivers/block/noop-iosched.c b/drivers/block/noop-iosched.c index f56b8edb06e4..e54f006e7e60 100644 --- a/drivers/block/noop-iosched.c +++ b/drivers/block/noop-iosched.c | |||
@@ -9,6 +9,7 @@ | |||
9 | 9 | ||
10 | static void elevator_noop_add_request(request_queue_t *q, struct request *rq) | 10 | static void elevator_noop_add_request(request_queue_t *q, struct request *rq) |
11 | { | 11 | { |
12 | rq->flags |= REQ_NOMERGE; | ||
12 | elv_dispatch_add_tail(q, rq); | 13 | elv_dispatch_add_tail(q, rq); |
13 | } | 14 | } |
14 | 15 | ||