lkml.org 
[lkml]   [2021]   [Dec]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] netfs: Fix lockdep warning from taking sb_writers whilst holding mmap_lock
On Tue, Dec 07, 2021 at 11:19:35AM +0000, David Howells wrote:
> Taking sb_writers whilst holding mmap_lock isn't allowed and will result in
> a lockdep warning like that below. The problem comes from cachefiles
> needing to take the sb_writers lock in order to do a write to the cache,
> but being asked to do this by netfslib called from readpage, readahead or
> write_begin[1].

Isn't it taking sb_writers _on a different filesystem_? So there's not
a real deadlock here, just a need to tell lockdep that this is a
different subclass of lock?

\
 
 \ /
  Last update: 2021-12-07 14:14    [W:0.459 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site