Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2005-01-20 16:22:40 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-01-20 16:22:40 -0800
commitc4d95edd7ecb037c7a308869810661928e99a52b (patch)
tree4f13f8ed2d699dea7811db17828b168452ca7336
parent090d7b9eeeba3ac8d7e764d8bfd6d5954392fd3e (diff)
[PATCH] Lock initializer cleanup: Raid
Use the new lock initializers DEFINE_SPIN_LOCK and DEFINE_RW_LOCK Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r--drivers/md/dm-log.c2
-rw-r--r--drivers/md/kcopyd.c2
-rw-r--r--drivers/md/md.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/drivers/md/dm-log.c b/drivers/md/dm-log.c
index 43a12285d81b..9d40a0ab6506 100644
--- a/drivers/md/dm-log.c
+++ b/drivers/md/dm-log.c
@@ -13,7 +13,7 @@
#include "dm-io.h"
static LIST_HEAD(_log_types);
-static spinlock_t _lock = SPIN_LOCK_UNLOCKED;
+static DEFINE_SPINLOCK(_lock);
int dm_register_dirty_log_type(struct dirty_log_type *type)
{
diff --git a/drivers/md/kcopyd.c b/drivers/md/kcopyd.c
index f2e7f7d7e86b..eb7036485975 100644
--- 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.
*/
-static spinlock_t _job_lock = SPIN_LOCK_UNLOCKED;
+static DEFINE_SPINLOCK(_job_lock);
static LIST_HEAD(_complete_jobs);
static LIST_HEAD(_io_jobs);
diff --git a/drivers/md/md.c b/drivers/md/md.c
index 6ec07fc7c754..5e59c814ef48 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -61,7 +61,7 @@ static void autostart_arrays (int part);
#endif
static mdk_personality_t *pers[MAX_PERSONALITY];
-static spinlock_t pers_lock = SPIN_LOCK_UNLOCKED;
+static DEFINE_SPINLOCK(pers_lock);
/*
* Current RAID-1,4,5 parallel reconstruction 'guaranteed speed limit'
@@ -129,7 +129,7 @@ static struct block_device_operations md_fops;
* all_mddevs_lock protects this list.
*/
static LIST_HEAD(all_mddevs);
-static spinlock_t all_mddevs_lock = SPIN_LOCK_UNLOCKED;
+static DEFINE_SPINLOCK(all_mddevs_lock);
/*