# Re: \[PATCH net-next v2 2/3\] page\_pool: Turn dma\_sync and dma\_sync\_cpu fields into a bitmap

- From: Jakub Kicinski \<kuba@kernel.org\>
- Date: 2025-03-26 11:23:53 
- List: netdev
- Page: https://ratatoskr.run/netdev/2025/03/6537256
- Thread: https://ratatoskr.run/netdev/2025/03/6537241/t.md

```text
On Wed, 26 Mar 2025 09:12:34 +0100 Toke Høiland-Jørgensen wrote:
> > I don't see why we'd need to wipe them atomically.
> > In fact I don't see why we're touching dma_sync_cpu, at all,
> > it's driver-facing and the driver is gone in the problematic
> > scenario.  
> 
> No you're right, but it felt weird to change just one of them, so
> figured I'd go with both. But keeping them both as bool, and just making
> dma_sync a full-width bool works, so I'll respin with that and leave
> dma_sync_cpu as-is.

Opinion on dma_sync_cpu clearing probably depends on mental model.
No strong feelings but perhaps add a comment next to clearing it
for the likes of myself saying that this technically shouldn't be
needed as we only expect drivers to ask for CPU sync?
```
