]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mwifiex: fix system hang issue in cmd timeout error case
authorBing Zhao <bzhao@marvell.com>
Thu, 15 Nov 2012 23:58:47 +0000 (15:58 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 3 Dec 2012 19:37:57 +0000 (11:37 -0800)
commitd467bca7112c08e3981ec568fad9e7d091e3328b
tree3fc76e0653056a5218f5a4bc764b4a66f73a289b
parent5410faf6a70b35a851246e32b6b3adfec72a5ffa
mwifiex: fix system hang issue in cmd timeout error case

commit b1a47aa5e1e159e2cb06d7dfcc17ef5149b09299 upstream.

Reported by Tim Shepard:
I was seeing sporadic failures (wedgeups), and the majority of those
failures I saw printed the printouts in mwifiex_cmd_timeout_func with
cmd = 0xe5 which is CMD_802_11_HS_CFG_ENH.  When this happens, two
minutes later I get notified that the rtcwake thread is blocked, like
this:
      INFO: task rtcwake:3495 blocked for more than 120 seconds.

To get the hung thread unblocked we wake up the cmd wait queue and
cancel the ioctl.

Reported-by: Tim Shepard <shep@laptop.org>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/mwifiex/cmdevt.c