Messages in this thread | | | Date | Wed, 19 Jan 2022 18:05:58 +0900 | Subject | Re: [PATCH] drivers/scsi/csiostor: do not sleep with a spin lock held | From | Damien Le Moal <> |
| |
On 1/19/22 17:57, cgel.zte@gmail.com 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
| |