[PATCH] Convert lockd to use the newer mutex instead of the older semaphore
Both the (recently introduces) nsm_sema and the older f_sema are converted over. Cc: Olaf Kirch <okir@suse.de> 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:
committed by
Linus Torvalds
parent
bc5fea4299
commit
89e63ef609
@@ -111,7 +111,7 @@ struct nlm_file {
|
||||
struct list_head f_blocks; /* blocked locks */
|
||||
unsigned int f_locks; /* guesstimate # of locks */
|
||||
unsigned int f_count; /* reference count */
|
||||
struct semaphore f_sema; /* avoid concurrent access */
|
||||
struct mutex f_mutex; /* avoid concurrent access */
|
||||
};
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user