Hi Peng, thanks for doing this! I am very much in favor of using scoped management of resources where it makes it easier to do the right thing. I agree with Krzysztof's comment that we should avoid scoping in cases where there is a clear path grab/use/release so the code is easy to read already as it is. Let's drop those. I saw there was some patch that was even a fix, perhaps I should pick that one separately for fixes, but probably it is non-urgent. I suppose we will just apply v2 after people had some time to look at it! Yours, Linus Walleij