commit | 0b176ce3a7cbfa92eceddf3896f1a504877d974a | [log] [tgz] |
---|---|---|
author | Peter Hurley <peter@hurleysoftware.com> | Tue Mar 05 06:09:06 2013 +0000 |
committer | David S. Miller <davem@davemloft.net> | Wed Mar 06 02:47:04 2013 -0500 |
tree | fe3b0e5154f51ba4a8a87dc6bd4dbd00e47270b6 | |
parent | 2f7c069b96ed7b1f6236f2fa7b0bc06f4f54f2d9 [diff] |
net/irda: Use barrier to set task state Without a memory and compiler barrier, the task state change can migrate relative to the condition testing in a blocking loop. However, the task state change must be visible across all cpus prior to testing those conditions. Failing to do this can result in the familiar 'lost wakeup' and this task will hang until killed. Signed-off-by: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: David S. Miller <davem@davemloft.net>