From: Christian Lamparter Date: Sat, 28 Mar 2009 00:46:14 +0000 (+0100) Subject: ar9170: fix hang on stop X-Git-Tag: v2.6.31-rc1~330^2~568^2~161 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32c1628f153a5468cf48be5e5c04cd599ae9e01d;p=pandora-kernel.git ar9170: fix hang on stop This patch fixes a locking problem which freezes the network core. The deadlock goes as follows: - ar9170_op_stop - is called 1. change the state to IDLE 2. > take the MUTEX < 3. cancel_SYNC all pending work, which means "block until a work_struct's callback has terminated" => if filter_config_work was queued it tries to get the MUTEX, before checking the device state... Signed-off-by: Christian Lamparter Signed-off-by: John W. Linville --- Reading git-diff-tree failed