git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vserver 1.9.5.x5
[linux-2.6.git]
/
drivers
/
md
/
kcopyd.c
diff --git
a/drivers/md/kcopyd.c
b/drivers/md/kcopyd.c
index
f296161
..
eb70364
100644
(file)
--- a/
drivers/md/kcopyd.c
+++ b/
drivers/md/kcopyd.c
@@
-211,7
+211,7
@@
static mempool_t *_job_pool;
*
* All three of these are protected by job_lock.
*/
*
* All three of these are protected by job_lock.
*/
-static
spinlock_t _job_lock = SPIN_LOCK_UNLOCKED
;
+static
DEFINE_SPINLOCK(_job_lock)
;
static LIST_HEAD(_complete_jobs);
static LIST_HEAD(_io_jobs);
static LIST_HEAD(_complete_jobs);
static LIST_HEAD(_io_jobs);
@@
-649,7
+649,7
@@
int kcopyd_client_create(unsigned int nr_pages, struct kcopyd_client **result)
return -ENOMEM;
}
return -ENOMEM;
}
-
kc->lock = SPIN_LOCK_UNLOCKED
;
+
spin_lock_init(&kc->lock)
;
kc->pages = NULL;
kc->nr_pages = kc->nr_free_pages = 0;
r = client_alloc_pages(kc, nr_pages);
kc->pages = NULL;
kc->nr_pages = kc->nr_free_pages = 0;
r = client_alloc_pages(kc, nr_pages);