# Re: \[PATCH 07/10\] watchdog/buddy: Don't copy the cpumask in watchdog\_next\_cpu()

- From: Petr Mladek \<pmladek@suse.com\>
- Date: 2023-05-30 14:57:37 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2023/05/2214853
- Thread: https://ratatoskr.run/linuxppc-dev/2023/05/2211972/t.md

```text
On Fri 2023-05-26 18:41:37, Douglas Anderson wrote:
> There's no reason to make a copy of the "watchdog_cpus" locally in
> watchdog_next_cpu(). Making a copy wouldn't make things any more race
> free and we're just reading the value so there's no need for a copy.
> 
> Suggested-by: Petr Mladek <pmladek@suse.com>
> Signed-off-by: Douglas Anderson <dianders@chromium.org>

Reviewed-by: Petr Mladek <pmladek@suse.com>

Best Regards,
Petr
```
