From: Jan Kiszka Date: Mon, 8 Feb 2010 10:12:15 +0000 (+0000) Subject: CAPI: Rework application locking X-Git-Tag: v2.6.34-rc1~233^2~273 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88c896ef87fd0dd4dbf36e8e86e019c74b1f6649;p=pandora-kernel.git CAPI: Rework application locking Drop the application rw-lock in favour of RCU. This synchronizes capi20_release against capi_ctr_handle_message which may dereference an application from (soft-)IRQ context. Any other access to the application list is now protected by the capi_controller_lock as well. This also allows to safely inspect applications for /proc dumping by holding capi_controller_lock. At this chance, drop some useless release_in_progress checks where we obtained the application pointer from the list (which becomes NULL on release_in_progress). Signed-off-by: Jan Kiszka Signed-off-by: David S. Miller --- Reading git-diff-tree failed