diff options
author | Davidlohr Bueso <davidlohr.bueso@hp.com> | 2013-09-11 17:26:24 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-09-11 18:59:42 -0400 |
commit | d9a605e40b1376eb02b067d7690580255a0df68f (patch) | |
tree | b21254f7172ae8db6faffd9b7941d579fa421478 /ipc/namespace.c | |
parent | c2c737a0461e61a34676bd0bd1bc1a70a1b4e396 (diff) |
ipc: rename ids->rw_mutex
Since in some situations the lock can be shared for readers, we shouldn't
be calling it a mutex, rename it to rwsem.
Signed-off-by: Davidlohr Bueso <davidlohr.bueso@hp.com>
Tested-by: Sedat Dilek <sedat.dilek@gmail.com>
Cc: Rik van Riel <riel@redhat.com>
Cc: Manfred Spraul <manfred@colorfullife.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'ipc/namespace.c')
-rw-r--r-- | ipc/namespace.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ipc/namespace.c b/ipc/namespace.c index 4be6581d3b7f..d43d9384bb2d 100644 --- a/ipc/namespace.c +++ b/ipc/namespace.c | |||
@@ -81,7 +81,7 @@ void free_ipcs(struct ipc_namespace *ns, struct ipc_ids *ids, | |||
81 | int next_id; | 81 | int next_id; |
82 | int total, in_use; | 82 | int total, in_use; |
83 | 83 | ||
84 | down_write(&ids->rw_mutex); | 84 | down_write(&ids->rwsem); |
85 | 85 | ||
86 | in_use = ids->in_use; | 86 | in_use = ids->in_use; |
87 | 87 | ||
@@ -93,7 +93,7 @@ void free_ipcs(struct ipc_namespace *ns, struct ipc_ids *ids, | |||
93 | free(ns, perm); | 93 | free(ns, perm); |
94 | total++; | 94 | total++; |
95 | } | 95 | } |
96 | up_write(&ids->rw_mutex); | 96 | up_write(&ids->rwsem); |
97 | } | 97 | } |
98 | 98 | ||
99 | static void free_ipc_ns(struct ipc_namespace *ns) | 99 | static void free_ipc_ns(struct ipc_namespace *ns) |