aboutsummaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
Diffstat (limited to 'block')
-rw-r--r--block/ll_rw_blk.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/block/ll_rw_blk.c b/block/ll_rw_blk.c
index cb608768ca37..7b23743eb9c5 100644
--- a/block/ll_rw_blk.c
+++ b/block/ll_rw_blk.c
@@ -3545,7 +3545,9 @@ void put_io_context(struct io_context *ioc)
3545 if (ioc->aic && ioc->aic->dtor) 3545 if (ioc->aic && ioc->aic->dtor)
3546 ioc->aic->dtor(ioc->aic); 3546 ioc->aic->dtor(ioc->aic);
3547 if (ioc->cic_root.rb_node != NULL) { 3547 if (ioc->cic_root.rb_node != NULL) {
3548 cic = rb_entry(rb_first(&ioc->cic_root), struct cfq_io_context, rb_node); 3548 struct rb_node *n = rb_first(&ioc->cic_root);
3549
3550 cic = rb_entry(n, struct cfq_io_context, rb_node);
3549 cic->dtor(ioc); 3551 cic->dtor(ioc);
3550 } 3552 }
3551 rcu_read_unlock(); 3553 rcu_read_unlock();