# Re: \[PATCH v5 4/8\] x86/mm/tlb: Flush remote and local TLBs concurrently

- From: Christoph Hellwig \<hch@infradead.org\>
- Date: 2021-02-18 09:39:59 
- List: virtualization
- Page: https://ratatoskr.run/virtualization/2021/02/6272744
- Thread: https://ratatoskr.run/linux-hyperv/2021/02/6264959/t.md

```text
Given that the last patch killed the last previously existing
user of on_each_cpu_cond_mask there are now the only users.

>  	if (info->freed_tables) {
> -		smp_call_function_many(cpumask, flush_tlb_func,
> -			       (void *)info, 1);
> +		on_each_cpu_cond_mask(NULL, flush_tlb_func, (void *)info, true,
> +				      cpumask);

.. 

> +		on_each_cpu_cond_mask(NULL, flush_tlb_func, (void *)info, true,
> +				      cpumask);

Which means the cond_func is unused, and thus on_each_cpu_cond_mask can
go away entirely in favor of on_each_cpu_cond.
_______________________________________________
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization
```
