lkml.org 
[lkml]   [2022]   [Sep]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] mbcache: Avoid nesting of cache->c_list_lock under bit locks
Date
On Thu, 8 Sep 2022 11:10:32 +0200, Jan Kara wrote:
> Commit 307af6c87937 ("mbcache: automatically delete entries from cache
> on freeing") started nesting cache->c_list_lock under the bit locks
> protecting hash buckets of the mbcache hash table in
> mb_cache_entry_create(). This causes problems for real-time kernels
> because there spinlocks are sleeping locks while bitlocks stay atomic.
> Luckily the nesting is easy to avoid by holding entry reference until
> the entry is added to the LRU list. This makes sure we cannot race with
> entry deletion.
>
> [...]

Applied, thanks!

[1/1] mbcache: Avoid nesting of cache->c_list_lock under bit locks
commit: 9cbf99ae41e3a051cc9ec738f2c436ec1725e0e8

Best regards,
--
Theodore Ts'o <tytso@mit.edu>

\
 
 \ /
  Last update: 2022-09-30 05:23    [W:0.046 / U:0.784 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site