[ath9k-devel] [PATCH 5/6] ath10k: wait for CE to drain when shutting down

2013-06-12 Thread Michal Kazior
ath10k_pci_process_ce() is used to process completions. Only one thread can do that though. If one thread starts handling completions then the other one (i.e. possibly PCI shutdown) would exit immediatelely and free up memory while completions are being processed leading to corruption. Signed-off

Re: [ath9k-devel] [PATCH 5/6] ath10k: wait for CE to drain when shutting down

2013-06-13 Thread Kalle Valo
Michal Kazior writes: > ath10k_pci_process_ce() is used to process > completions. Only one thread can do that though. > > If one thread starts handling completions then the > other one (i.e. possibly PCI shutdown) would exit > immediatelely and free up memory while completions > are being process

Re: [ath9k-devel] [PATCH 5/6] ath10k: wait for CE to drain when shutting down

2013-06-14 Thread Michal Kazior
On 13/06/13 20:08, Kalle Valo wrote: > Michal Kazior writes: > >> ath10k_pci_process_ce() is used to process >> completions. Only one thread can do that though. >> >> If one thread starts handling completions then the >> other one (i.e. possibly PCI shutdown) would exit >> immediatelely and free u

Re: [ath9k-devel] [PATCH 5/6] ath10k: wait for CE to drain when shutting down

2013-06-14 Thread Kalle Valo
Michal Kazior writes: > On 13/06/13 20:08, Kalle Valo wrote: >> Michal Kazior writes: >> >>> ath10k_pci_process_ce() is used to process >>> completions. Only one thread can do that though. >>> >>> If one thread starts handling completions then the >>> other one (i.e. possibly PCI shutdown) would