linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [QUESTION] xas_reload() in iter_xarray_populate_pages()
@ 2025-05-26  6:35 Dev Jain
  2025-05-26  7:40 ` David Hildenbrand
  2025-06-17  5:10 ` Dev Jain
  0 siblings, 2 replies; 10+ messages in thread
From: Dev Jain @ 2025-05-26  6:35 UTC (permalink / raw)
  To: david, ziy, willy, dhowells, hughd
  Cc: linux-mm, linux-kernel, ryan.roberts, aneesh.kumar

Hello all,

After doing an xas_load() and xas_retry(), we take neither a reference nor a lock
on the folio, and we do an xas_reload(). Is this just to reduce the time window
for a race?

If the above is true, then, there is a negligible window between xas_load() and
xas_reload(), because only xas_retry() exists between them, so why to even reload()?

Thanks,
Dev



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2025-06-18  3:14 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-26  6:35 [QUESTION] xas_reload() in iter_xarray_populate_pages() Dev Jain
2025-05-26  7:40 ` David Hildenbrand
2025-05-26 19:20   ` Matthew Wilcox
2025-06-17  5:10 ` Dev Jain
2025-06-17  7:47   ` David Hildenbrand
2025-06-17  9:18     ` Dev Jain
2025-06-17  9:26       ` David Hildenbrand
2025-06-17  9:38         ` Dev Jain
2025-06-17 13:47   ` Matthew Wilcox
2025-06-18  3:14     ` Dev Jain

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).