]> git.karo-electronics.de Git - karo-tx-linux.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)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 6 Dec 2012 11:20:24 +0000 (11:20 +0000)
commit154fa8dc03e900f316a0267cbf45954c2f48a6e9
tree3a881ca6e761f6333d92fcb10f8425031574dc6d
parent8d61fa9bf394c53a4666c183f8d7a339e9c114bc
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>
[bwh: Backported to 3.2: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/net/wireless/mwifiex/cmdevt.c