On Sat, 19 Sep 2020 12:00:25 -0300, Gustavo Romero wrote: > Althought AMR is stashed in the checkpoint area, currently we don't save > it to the per thread checkpoint struct after a treclaim and so we don't > restore it either from that struct when we trechkpt. As a consequence when > the transaction is later rolled back the kernel space AMR value when the > trechkpt was done appears in userspace. > > That commit saves and restores AMR accordingly on treclaim and trechkpt. > Since AMR value is also used in kernel space in other functions, it also > takes care of stashing kernel live AMR into the stack before treclaim and > before trechkpt, restoring it later, just before returning from tm_reclaim > and __tm_recheckpoint. > > [...]
Applied to powerpc/next. [1/1] powerpc/tm: Save and restore AMR on treclaim and trechkpt https://git.kernel.org/powerpc/c/d0ffdee8ff01fb21085d835ee54dc8c1c4d19226 cheers