]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: hold the RCU read lock over calls to ->map_pages
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 27 Mar 2023 17:45:15 +0000 (18:45 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 28 Mar 2023 23:25:19 +0000 (16:25 -0700)
commitaa49803fb8106552cf7cdd6ac8a33b8fd399f3e7
tree073f6894e99c090276b175e2ae689996b3fb7ecd
parent4be3e0645188344497782aea451ccce3ab9ea3d8
mm: hold the RCU read lock over calls to ->map_pages

Prevent filesystems from doing things which sleep in their map_pages
method.  This is in preparation for a pagefault path protected only by
RCU.

Link: https://lkml.kernel.org/r/20230327174515.1811532-4-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Darrick J. Wong <djwong@kernel.org>
Cc: Dave Chinner <david@fromorbit.com>
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Documentation/filesystems/locking.rst
mm/memory.c