[PATCH] md: Convert reconfig_sem to reconfig_mutex

... being careful that mutex_trylock is inverted wrt down_trylock

Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
NeilBrown 2006-03-27 01:18:20 -08:00 committed by Linus Torvalds
parent 48c9c27b8b
commit df5b89b323
2 changed files with 8 additions and 8 deletions

View file

@ -185,7 +185,7 @@ struct mddev_s
unsigned long recovery;
int in_sync; /* know to not need resync */
struct semaphore reconfig_sem;
struct mutex reconfig_mutex;
atomic_t active;
int changed; /* true if we might need to reread partition info */