diff options
author | Jeff Garzik <jeff@garzik.org> | 2006-08-29 17:55:59 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-08-29 17:55:59 -0400 |
commit | b01e86fee6c821e4e003fd4e9f65453ac478a58e (patch) | |
tree | 21695e10cbe7001d2ccc8c87cee5e7a7865b1025 /block | |
parent | e889173c2c67dc288e9b050ab066cfae151b047e (diff) | |
parent | 60d4684068ff1eec78f55b5888d0bd2d4cca1520 (diff) |
Merge /spare/repo/linux-2.6 into upstream
Diffstat (limited to 'block')
-rw-r--r-- | block/cfq-iosched.c | 2 | ||||
-rw-r--r-- | block/elevator.c | 3 | ||||
-rw-r--r-- | block/ll_rw_blk.c | 2 |
3 files changed, 5 insertions, 2 deletions
diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c index aae3123bf3ee..3a3aee08ec5f 100644 --- a/block/cfq-iosched.c +++ b/block/cfq-iosched.c | |||
@@ -1561,7 +1561,7 @@ restart: | |||
1561 | /* ->key must be copied to avoid race with cfq_exit_queue() */ | 1561 | /* ->key must be copied to avoid race with cfq_exit_queue() */ |
1562 | k = __cic->key; | 1562 | k = __cic->key; |
1563 | if (unlikely(!k)) { | 1563 | if (unlikely(!k)) { |
1564 | cfq_drop_dead_cic(ioc, cic); | 1564 | cfq_drop_dead_cic(ioc, __cic); |
1565 | goto restart; | 1565 | goto restart; |
1566 | } | 1566 | } |
1567 | 1567 | ||
diff --git a/block/elevator.c b/block/elevator.c index bc7baeec0d10..9b72dc7c8a5c 100644 --- a/block/elevator.c +++ b/block/elevator.c | |||
@@ -765,7 +765,8 @@ void elv_unregister(struct elevator_type *e) | |||
765 | read_lock(&tasklist_lock); | 765 | read_lock(&tasklist_lock); |
766 | do_each_thread(g, p) { | 766 | do_each_thread(g, p) { |
767 | task_lock(p); | 767 | task_lock(p); |
768 | e->ops.trim(p->io_context); | 768 | if (p->io_context) |
769 | e->ops.trim(p->io_context); | ||
769 | task_unlock(p); | 770 | task_unlock(p); |
770 | } while_each_thread(g, p); | 771 | } while_each_thread(g, p); |
771 | read_unlock(&tasklist_lock); | 772 | read_unlock(&tasklist_lock); |
diff --git a/block/ll_rw_blk.c b/block/ll_rw_blk.c index 61d6b3c65b66..ddd9253f9d55 100644 --- a/block/ll_rw_blk.c +++ b/block/ll_rw_blk.c | |||
@@ -3628,6 +3628,8 @@ struct io_context *current_io_context(gfp_t gfp_flags) | |||
3628 | ret->nr_batch_requests = 0; /* because this is 0 */ | 3628 | ret->nr_batch_requests = 0; /* because this is 0 */ |
3629 | ret->aic = NULL; | 3629 | ret->aic = NULL; |
3630 | ret->cic_root.rb_node = NULL; | 3630 | ret->cic_root.rb_node = NULL; |
3631 | /* make sure set_task_ioprio() sees the settings above */ | ||
3632 | smp_wmb(); | ||
3631 | tsk->io_context = ret; | 3633 | tsk->io_context = ret; |
3632 | } | 3634 | } |
3633 | 3635 | ||