Skip to content

Commit

Permalink
CAPI: Rework locking of controller data structures
Browse files Browse the repository at this point in the history
This patch applies the mutex so far only protecting the controller list
to (almost) all accesses of controller data structures. It also reworks
waiting on state changes in old_capi_manufacturer so that it no longer
poll and holds a module reference to the controller owner while waiting
(the latter was partly done already). Modification and checking of the
blocked state remains racy by design, the caller is responsible for
dealing with this.

Signed-off-by: Jan Kiszka <jan.kiszka@web.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Jan Kiszka authored and David S. Miller committed Feb 17, 2010
1 parent ef69bb2 commit 0ca3a01
Show file tree
Hide file tree
Showing 4 changed files with 217 additions and 89 deletions.
Loading

0 comments on commit 0ca3a01

Please sign in to comment.