Search Linux Wireless

Re: [PATCH 3/4] mwifiex: remove_bss_prio_lock

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Avinash Patil <patila@xxxxxxxxxxx> writes:

> From: Zhaoyang Liu <liuzy@xxxxxxxxxxx>
>
> This patch does away with spinlock in
> mwifiex_wmm_get_highest_priolist_ptr in order to improve TP.
>
> Signed-off-by: Zhaoyang Liu <liuzy@xxxxxxxxxxx>
> Signed-off-by: Shengzhen Li <szli@xxxxxxxxxxx>
> Signed-off-by: Cathy Luo <cluo@xxxxxxxxxxx>
> Signed-off-by: Amitkumar Karwar <patila@xxxxxxxxxxx>
> Signed-off-by: Avinash Patil <patila@xxxxxxxxxxx>

[...]

> @@ -727,6 +730,25 @@ static int mwifiex_deinit_priv_params(struct mwifiex_private *priv)
>  	}
>  
>  	mwifiex_deauthenticate(priv, NULL);
> +
> +	spin_lock_irqsave(&adapter->main_proc_lock, flags);
> +	adapter->main_locked = true;
> +	if (adapter->mwifiex_processing) {
> +		spin_unlock_irqrestore(&adapter->main_proc_lock, flags);
> +		flush_workqueue(adapter->workqueue);
> +	} else {
> +		spin_unlock_irqrestore(&adapter->main_proc_lock, flags);
> +	}
> +
> +	spin_lock_irqsave(&adapter->rx_proc_lock, flags);
> +	adapter->rx_locked = true;
> +	if (adapter->rx_processing) {
> +		spin_unlock_irqrestore(&adapter->rx_proc_lock, flags);
> +		flush_workqueue(adapter->rx_workqueue);
> +	} else {
> +		spin_unlock_irqrestore(&adapter->rx_proc_lock, flags);
> +	}

And here the horrible hack just grows to other functions.

-- 
Kalle Valo
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux