mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 22:21:21 +00:00
[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:
parent
48c9c27b8b
commit
df5b89b323
2 changed files with 8 additions and 8 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue