On 1/19/22 17:57, cgel.zte@xxxxxxxxx wrote: > > The might_sleep_if(gfp_mask & __GFP_DIRECT_RECLAIM) in the > mempool_alloc function uses __GFP_DIRECT_RECLAIM. But the call to mempool_alloc() specifies GFP_ATOMIC, which does not have __GFP_DIRECT_RECLAIM, so "gfp_mask & __GFP_DIRECT_RECLAIM" should be false, and the might_sleep_if() not triggering. How can you see the might sleep warning ? -- Damien Le Moal Western Digital Research