diff options
| author | Ilias Apalodimas <[email protected]> | 2023-02-17 22:21:30 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2023-02-21 17:15:39 +0000 |
| commit | 4d4266e3fd321fadb628ce02de641b129522c39c (patch) | |
| tree | 3a3b01a058c6b6deb48ef8f14630d1eae7bef589 /net/unix/af_unix.c | |
| parent | net: ethtool: fix __ethtool_dev_mm_supported() implementation (diff) | |
| download | kernel-4d4266e3fd321fadb628ce02de641b129522c39c.tar.gz kernel-4d4266e3fd321fadb628ce02de641b129522c39c.zip | |
page_pool: add a comment explaining the fragment counter usage
When reading the page_pool code the first impression is that keeping
two separate counters, one being the page refcnt and the other being
fragment pp_frag_count, is counter-intuitive.
However without that fragment counter we don't know when to reliably
destroy or sync the outstanding DMA mappings. So let's add a comment
explaining this part.
Reviewed-by: Alexander Duyck <[email protected]>
Signed-off-by: Ilias Apalodimas <[email protected]>
Acked-by: Jesper Dangaard Brouer <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
