On 1/25/24 22:12, Alexandru Elisei wrote: > arm64 uses arch_swap_restore() to restore saved tags before the page is > swapped in and it's called in atomic context (with the ptl lock held). > > Introduce arch_swap_prepare_to_restore() that will allow an architecture to > perform extra work during swap in and outside of a critical section. > This will be used by arm64 to allocate a buffer in memory where to > temporarily save tags if tag storage is not available for the page being > swapped in. Just wondering if tag storage will always be unavailable for tagged pages being swapped in ? OR there are cases where allocation might not even be required ? This prepare phase needs to be outside the critical section - only because there might be memory allocations ?
- Re: [PATCH RFC v3 10/35] mm: cma: Fast track allo... Anshuman Khandual
- Re: [PATCH RFC v3 10/35] mm: cma: Fast track ... Alexandru Elisei
- [PATCH RFC v3 11/35] mm: Allow an arch to hook into fo... Alexandru Elisei
- Re: [PATCH RFC v3 11/35] mm: Allow an arch to hoo... Peter Collingbourne
- Re: [PATCH RFC v3 11/35] mm: Allow an arch to... Alexandru Elisei
- Re: [PATCH RFC v3 11/35] mm: Allow an arch to hoo... Anshuman Khandual
- Re: [PATCH RFC v3 11/35] mm: Allow an arch to... Alexandru Elisei
- Re: [PATCH RFC v3 11/35] mm: Allow an arc... Anshuman Khandual
- Re: [PATCH RFC v3 11/35] mm: Allow an... Alexandru Elisei
- [PATCH RFC v3 12/35] mm: Call arch_swap_prepare_to_res... Alexandru Elisei
- Re: [PATCH RFC v3 12/35] mm: Call arch_swap_prepa... Anshuman Khandual
- Re: [PATCH RFC v3 12/35] mm: Call arch_swap_p... Alexandru Elisei
- [PATCH RFC v3 13/35] mm: memory: Introduce fault-on-ac... Alexandru Elisei
- Re: [PATCH RFC v3 13/35] mm: memory: Introduce fa... Anshuman Khandual
- Re: [PATCH RFC v3 13/35] mm: memory: Introduc... Alexandru Elisei
- [PATCH RFC v3 14/35] of: fdt: Return the region size i... Alexandru Elisei
- [PATCH RFC v3 15/35] of: fdt: Add of_flat_read_u32() Alexandru Elisei
- [PATCH RFC v3 16/35] KVM: arm64: Don't deny VM_PFNMAP ... Alexandru Elisei
- [PATCH RFC v3 17/35] arm64: mte: Rework naming for tag... Alexandru Elisei
- [PATCH RFC v3 18/35] arm64: mte: Rename __GFP_ZEROTAGS... Alexandru Elisei
- [PATCH RFC v3 19/35] arm64: mte: Discover tag storage ... Alexandru Elisei