diff options
author | Zhu Yi <yi.zhu@intel.com> | 2010-04-02 20:38:54 (GMT) |
---|---|---|
committer | Reinette Chatre <reinette.chatre@intel.com> | 2010-04-09 19:41:26 (GMT) |
commit | 470058e0ad82fcfaaffd57307d8bf8c094e8e9d7 (patch) | |
tree | 1d539469c372b2cca3a8c11a1913b527819dad0b /mm/backing-dev.c | |
parent | 57e40d36e59f828f43d60b2662041991dcd78044 (diff) | |
download | linux-fsl-qoriq-470058e0ad82fcfaaffd57307d8bf8c094e8e9d7.tar.xz |
iwlwifi: avoid Tx queue memory allocation in interface down
We used to free all the Tx queues memory when interface is brought
down and reallocate them again in interface up. This requires
order-4 allocation for txq->cmd[]. In situations like s2ram, this
usually leads to allocation failure in the memory subsystem. The
patch fixed this problem by allocating the Tx queues memory only at
the first time. Later iwl_down/iwl_up only initialize but don't
free and reallocate them. The memory is freed at the device removal
time. BTW, we have already done this for the Rx queue.
This fixed bug https://bugzilla.kernel.org/show_bug.cgi?id=15551
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Acked-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Diffstat (limited to 'mm/backing-dev.c')
0 files changed, 0 insertions, 0 deletions