diff options
Diffstat (limited to 'block/cfq-iosched.c')
-rw-r--r-- | block/cfq-iosched.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c index fd7080ed7935..1b2d12cda43e 100644 --- a/block/cfq-iosched.c +++ b/block/cfq-iosched.c | |||
@@ -48,7 +48,7 @@ static int cfq_slice_idle = HZ / 125; | |||
48 | static struct kmem_cache *cfq_pool; | 48 | static struct kmem_cache *cfq_pool; |
49 | static struct kmem_cache *cfq_ioc_pool; | 49 | static struct kmem_cache *cfq_ioc_pool; |
50 | 50 | ||
51 | static DEFINE_PER_CPU(unsigned long, ioc_count); | 51 | static DEFINE_PER_CPU(unsigned long, cfq_ioc_count); |
52 | static struct completion *ioc_gone; | 52 | static struct completion *ioc_gone; |
53 | static DEFINE_SPINLOCK(ioc_gone_lock); | 53 | static DEFINE_SPINLOCK(ioc_gone_lock); |
54 | 54 | ||
@@ -1427,7 +1427,7 @@ static void cfq_cic_free_rcu(struct rcu_head *head) | |||
1427 | cic = container_of(head, struct cfq_io_context, rcu_head); | 1427 | cic = container_of(head, struct cfq_io_context, rcu_head); |
1428 | 1428 | ||
1429 | kmem_cache_free(cfq_ioc_pool, cic); | 1429 | kmem_cache_free(cfq_ioc_pool, cic); |
1430 | elv_ioc_count_dec(ioc_count); | 1430 | elv_ioc_count_dec(cfq_ioc_count); |
1431 | 1431 | ||
1432 | if (ioc_gone) { | 1432 | if (ioc_gone) { |
1433 | /* | 1433 | /* |
@@ -1436,7 +1436,7 @@ static void cfq_cic_free_rcu(struct rcu_head *head) | |||
1436 | * complete ioc_gone and set it back to NULL | 1436 | * complete ioc_gone and set it back to NULL |
1437 | */ | 1437 | */ |
1438 | spin_lock(&ioc_gone_lock); | 1438 | spin_lock(&ioc_gone_lock); |
1439 | if (ioc_gone && !elv_ioc_count_read(ioc_count)) { | 1439 | if (ioc_gone && !elv_ioc_count_read(cfq_ioc_count)) { |
1440 | complete(ioc_gone); | 1440 | complete(ioc_gone); |
1441 | ioc_gone = NULL; | 1441 | ioc_gone = NULL; |
1442 | } | 1442 | } |
@@ -1562,7 +1562,7 @@ cfq_alloc_io_context(struct cfq_data *cfqd, gfp_t gfp_mask) | |||
1562 | INIT_HLIST_NODE(&cic->cic_list); | 1562 | INIT_HLIST_NODE(&cic->cic_list); |
1563 | cic->dtor = cfq_free_io_context; | 1563 | cic->dtor = cfq_free_io_context; |
1564 | cic->exit = cfq_exit_io_context; | 1564 | cic->exit = cfq_exit_io_context; |
1565 | elv_ioc_count_inc(ioc_count); | 1565 | elv_ioc_count_inc(cfq_ioc_count); |
1566 | } | 1566 | } |
1567 | 1567 | ||
1568 | return cic; | 1568 | return cic; |
@@ -2668,7 +2668,7 @@ static void __exit cfq_exit(void) | |||
2668 | * this also protects us from entering cfq_slab_kill() with | 2668 | * this also protects us from entering cfq_slab_kill() with |
2669 | * pending RCU callbacks | 2669 | * pending RCU callbacks |
2670 | */ | 2670 | */ |
2671 | if (elv_ioc_count_read(ioc_count)) | 2671 | if (elv_ioc_count_read(cfq_ioc_count)) |
2672 | wait_for_completion(&all_gone); | 2672 | wait_for_completion(&all_gone); |
2673 | cfq_slab_kill(); | 2673 | cfq_slab_kill(); |
2674 | } | 2674 | } |