[PATCH v5 03/22] cachefiles: introduce on-demand read mode

David Howells dhowells at redhat.com
Tue Mar 22 01:14:03 AEDT 2022


Matthew Wilcox <willy at infradead.org> wrote:

> Why do you have a separate rwlock when the xarray already has its own
> spinlock?  This is usually a really bad idea.

Jeffle wants to hold a lock across the CACHEFILES_DEAD check and the xarray
access.

However, he tells xarray to do a GFP_KERNEL alloc whilst holding the rwlock:-/

David



More information about the Linux-erofs mailing list