lkml.org 
[lkml]   [2011]   [Nov]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: INFO: possible recursive locking detected: get_partial_node() on 3.2-rc1
On Tue, 15 Nov 2011, Yong Zhang wrote:
>> Subject: slub: move discard_slab out of node lock
>>
>> Lockdep reports there is potential deadlock for slub node list_lock.
>> discard_slab() is called with the lock hold in unfreeze_partials(),
>> which could trigger a slab allocation, which could hold the lock again.
>>
>> discard_slab() doesn't need hold the lock actually, if the slab is
>> already removed from partial list.
>>
>> Reported-and-tested-by: Yong Zhang <yong.zhang0@gmail.com>
>> Reported-and-tested-by: Julie Sullivan <kernelmail.jms@gmail.com>
>> Signed-off-by: Shaohua Li <shaohua.li@intel.com>
>
> Tested-by: Yong Zhang <yong.zhang0@gmail.com>

Applied, thanks!


\
 
 \ /
  Last update: 2011-11-15 19:53    [W:0.054 / U:13.876 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site