lkml.org 
[lkml]   [2022]   [Jan]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] drivers/scsi/csiostor: do not sleep with a spin lock held
From
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

\
 
 \ /
  Last update: 2022-01-19 10:07    [W:0.184 / U:0.140 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site