diff options
author | Johannes Berg <johannes.berg@intel.com> | 2012-12-05 09:49:14 +0100 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2012-12-06 14:05:05 +0100 |
commit | 0b7dff4faed07f55be2a98dd0eafc02623174236 (patch) | |
tree | 632417e2b6302076b3ef5781a5da98506cbff097 /crypto/twofish_generic.c | |
parent | 01331040e6442ad09181bfaacd8bb9687dce2389 (diff) | |
download | linux-next-0b7dff4faed07f55be2a98dd0eafc02623174236.tar.gz |
mac80211: cancel work instead of waiting for it to do nothing
If the sdata work is pending while the interface is stopped,
we currently flush it. If it's not running this means waiting
for it to run, which could take a while if the workqueue is
backlogged. However, the work exits right away if it starts
to run while the interface is already stopping. There's no
point in waiting for that, so use cancel_work_sync() instead.
Reported-by: Ben Greear <greearb@candelatech.com>
Tested-by: Ben Greear <greearb@candelatech.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'crypto/twofish_generic.c')
0 files changed, 0 insertions, 0 deletions