Thread (7 messages) flat view 7 messages, 3 authors, 2020-05-22

Re: [PATCH] files: Use rcu lock to get the file structures for better performance

From: Matthew Wilcox <willy@infradead.org>
Date: 2020-05-21 15:21:39
Also in: bpf, linux-fsdevel, lkml

On Thu, May 21, 2020 at 08:38:35PM +0800, Muchun Song wrote:
There is another safe way to get the file structure without
holding the files->file_lock. That is rcu lock, and this way
has better performance. So use the rcu lock instead of the
files->file_lock.
What makes you think this is safe?  Are you actually seeing contention
on this spinlock?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help