Hi,Christophe Christophe Leroy <christophe.leroy@xxxxxxxxxx> wrote on Saturday, 4 January 2025 03:58: > > > > Le 03/01/2025 à 11:51, Guo Weikang a écrit : > > After analyzing the usage of memblock_alloc, it was found that approximately > > 4/5 (120/155) of the calls expect a panic behavior on allocation failure. > > To reflect this common usage pattern, the default failure behavior of > > memblock_alloc is now modified to trigger a panic when allocation fails. > > > > Additionally, a new interface, memblock_alloc_no_panic, has been introduced > > to handle cases where panic behavior is not desired. > > Isn't that going in the opposite direction ? > > 5 years ago we did the exact reverse, see commit c0dbe825a9f1 > ("memblock: memblock_alloc_try_nid: don't panic") > > Christophe > > >