Hey Christophe, Michael, This series actually looks pretty okay to me. I realize ThomasW is working on more generic cleanups that might obliterate the need for this, and that may or may not wind up in 6.13. But, I was thinking, this seems like a good correct thing to do, and to do it now for 6.12, maybe as a fix through the powerpc tree. Then ThomasW can base his work atop this, which might wind up including the nice lr optimizations you've made. And then also if ThomasW's work doesn't land or gets reverted or whatever, at least we'll have this in tree for 6.12.
Michael - what do you think of that? Worth taking these two patches into your fixes? Jason