lkml.org 
[lkml]   [2021]   [Dec]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v1 19/23] cachefiles: implement .demand_read() for demand read
On Mon, Dec 27, 2021 at 08:54:40PM +0800, Jeffle Xu wrote:
> + spin_lock(&cache->reqs_lock);
> + ret = idr_alloc(&cache->reqs, req, 0, 0, GFP_KERNEL);

GFP_KERNEL while holding a spinlock?

You should be using an XArray instead of an IDR in new code anyway.

\
 
 \ /
  Last update: 2021-12-27 16:38    [W:0.183 / U:0.144 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site