mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
pcmcia: use ops_mutex for rsrc_{mgr,nonstatic} locking
Tested-by: Wolfram Sang <[email protected]> Signed-off-by: Dominik Brodowski <[email protected]>
This commit is contained in:
parent
3f565232c5
commit
cfe5d80951
6 changed files with 23 additions and 36 deletions
|
|
@ -36,7 +36,8 @@ be called with "ops_mutex" held:
|
|||
socket_reset()
|
||||
socket_setup()
|
||||
|
||||
struct pccard_operations *ops
|
||||
struct pccard_operations *ops
|
||||
struct pccard_resource_ops *resource_ops;
|
||||
|
||||
Note that send_event() and struct pcmcia_callback *callback must not be
|
||||
called with "ops_mutex" held.
|
||||
|
|
@ -54,7 +55,7 @@ protected by pcmcia_socket_list_rwsem;
|
|||
|
||||
2. Per-Socket Data:
|
||||
-------------------
|
||||
The resource_ops are on their own to provide proper locking.
|
||||
The resource_ops and their data are protected by ops_mutex.
|
||||
|
||||
The "main" struct pcmcia_socket is protected as follows (read-only fields
|
||||
or single-use fields not mentioned):
|
||||
|
|
|
|||
Loading…
Reference in a new issue