mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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 <[email protected]> Tested-by: Sedat Dilek <[email protected]> Cc: Rik van Riel <[email protected]> Cc: Manfred Spraul <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
c2c737a046
commit
d9a605e40b
7 changed files with 69 additions and 69 deletions
|
|
@ -81,7 +81,7 @@ void free_ipcs(struct ipc_namespace *ns, struct ipc_ids *ids,
|
|||
int next_id;
|
||||
int total, in_use;
|
||||
|
||||
down_write(&ids->rw_mutex);
|
||||
down_write(&ids->rwsem);
|
||||
|
||||
in_use = ids->in_use;
|
||||
|
||||
|
|
@ -93,7 +93,7 @@ void free_ipcs(struct ipc_namespace *ns, struct ipc_ids *ids,
|
|||
free(ns, perm);
|
||||
total++;
|
||||
}
|
||||
up_write(&ids->rw_mutex);
|
||||
up_write(&ids->rwsem);
|
||||
}
|
||||
|
||||
static void free_ipc_ns(struct ipc_namespace *ns)
|
||||
|
|
|
|||
Loading…
Reference in a new issue