aboutsummaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2006-12-07 16:35:17 -0500
committerTrond Myklebust <Trond.Myklebust@netapp.com>2006-12-07 16:35:17 -0500
commit21b4e736922f546e0f1aa7b9d6c442f309a2444a (patch)
treee1be8645297f8ebe87445251743ebcc52081a20d /block
parent34161db6b14d984fb9b06c735b7b42f8803f6851 (diff)
parent68380b581383c028830f79ec2670f4a193854aa6 (diff)
Merge branch 'master' of /home/trondmy/kernel/linux-2.6/ into merge_linus
Diffstat (limited to 'block')
-rw-r--r--block/blktrace.c3
-rw-r--r--block/cfq-iosched.c4
-rw-r--r--block/ll_rw_blk.c10
3 files changed, 6 insertions, 11 deletions
diff --git a/block/blktrace.c b/block/blktrace.c
index 74e02c04b2da..d3679dd1d220 100644
--- a/block/blktrace.c
+++ b/block/blktrace.c
@@ -394,8 +394,7 @@ err:
394 if (bt) { 394 if (bt) {
395 if (bt->dropped_file) 395 if (bt->dropped_file)
396 debugfs_remove(bt->dropped_file); 396 debugfs_remove(bt->dropped_file);
397 if (bt->sequence) 397 free_percpu(bt->sequence);
398 free_percpu(bt->sequence);
399 if (bt->rchan) 398 if (bt->rchan)
400 relay_close(bt->rchan); 399 relay_close(bt->rchan);
401 kfree(bt); 400 kfree(bt);
diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c
index 84e9be073180..78c6b312bd30 100644
--- a/block/cfq-iosched.c
+++ b/block/cfq-iosched.c
@@ -43,8 +43,8 @@ static int cfq_slice_idle = HZ / 125;
43#define RQ_CIC(rq) ((struct cfq_io_context*)(rq)->elevator_private) 43#define RQ_CIC(rq) ((struct cfq_io_context*)(rq)->elevator_private)
44#define RQ_CFQQ(rq) ((rq)->elevator_private2) 44#define RQ_CFQQ(rq) ((rq)->elevator_private2)
45 45
46static kmem_cache_t *cfq_pool; 46static struct kmem_cache *cfq_pool;
47static kmem_cache_t *cfq_ioc_pool; 47static struct kmem_cache *cfq_ioc_pool;
48 48
49static DEFINE_PER_CPU(unsigned long, ioc_count); 49static DEFINE_PER_CPU(unsigned long, ioc_count);
50static struct completion *ioc_gone; 50static struct completion *ioc_gone;
diff --git a/block/ll_rw_blk.c b/block/ll_rw_blk.c
index cc6e95f8e5d9..31512cd9f3ad 100644
--- a/block/ll_rw_blk.c
+++ b/block/ll_rw_blk.c
@@ -44,17 +44,17 @@ static struct io_context *current_io_context(gfp_t gfp_flags, int node);
44/* 44/*
45 * For the allocated request tables 45 * For the allocated request tables
46 */ 46 */
47static kmem_cache_t *request_cachep; 47static struct kmem_cache *request_cachep;
48 48
49/* 49/*
50 * For queue allocation 50 * For queue allocation
51 */ 51 */
52static kmem_cache_t *requestq_cachep; 52static struct kmem_cache *requestq_cachep;
53 53
54/* 54/*
55 * For io context allocations 55 * For io context allocations
56 */ 56 */
57static kmem_cache_t *iocontext_cachep; 57static struct kmem_cache *iocontext_cachep;
58 58
59/* 59/*
60 * Controlling structure to kblockd 60 * Controlling structure to kblockd
@@ -3459,8 +3459,6 @@ static void blk_done_softirq(struct softirq_action *h)
3459 } 3459 }
3460} 3460}
3461 3461
3462#ifdef CONFIG_HOTPLUG_CPU
3463
3464static int blk_cpu_notify(struct notifier_block *self, unsigned long action, 3462static int blk_cpu_notify(struct notifier_block *self, unsigned long action,
3465 void *hcpu) 3463 void *hcpu)
3466{ 3464{
@@ -3486,8 +3484,6 @@ static struct notifier_block __devinitdata blk_cpu_notifier = {
3486 .notifier_call = blk_cpu_notify, 3484 .notifier_call = blk_cpu_notify,
3487}; 3485};
3488 3486
3489#endif /* CONFIG_HOTPLUG_CPU */
3490
3491/** 3487/**
3492 * blk_complete_request - end I/O on a request 3488 * blk_complete_request - end I/O on a request
3493 * @req: the request being processed 3489 * @req: the request being processed