Thread (30 messages) 30 messages, 4 authors, 2011-07-25

Re: [PATCH] vfs: move ACL cache lookup into generic code

From: Al Viro <viro@ZenIV.linux.org.uk>
Date: 2011-07-23 04:31:22

On Fri, Jul 22, 2011 at 08:42:35PM -0700, Linus Torvalds wrote:
quoted
... why is that a problem? ?Locking there is mere ->i_lock and getting
a refcount is atomic_inc(). ?Grabbing a reference might be Not Nice from
the cacheline bouncing POV, but...
I agree in theory, but it's not something we've done before. Some of
the posix-acl code is pretty disgusting, I didn't even want to go
there.

And the case that tends to really *matter* is the "no acls" case
anyway, and that's the case that is guaranteed to have no nasty races
or odd issues with having to allocate/de-allocate any acl structures.
But yes, this could be looked at.
Heh...  In addition to ocfs2 leak: 9p leaks nicely if v9fs_acl_mode() is
called with !S_ISDIR(mode).  In that case acl reference is simply lost.
So yes, it's worth looking at.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help