summaryrefslogtreecommitdiffstats
path: root/fs/gfs2/acl.c
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2011-01-19 09:42:40 +0000
committerSteven Whitehouse <swhiteho@redhat.com>2011-01-21 09:39:24 +0000
commit75d5cfbe4b78cc26af7b042e23f61700b50bc294 (patch)
tree189346d6c6fb7e72921d7ace2871bfd8780110da /fs/gfs2/acl.c
parentbc015cb84129eb1451913cfebece270bf7a39e0f (diff)
downloadop-kernel-dev-75d5cfbe4b78cc26af7b042e23f61700b50bc294.zip
op-kernel-dev-75d5cfbe4b78cc26af7b042e23f61700b50bc294.tar.gz
GFS2: Post-VFS scale update for RCU path walk
We can allow a few more cases to use RCU path walking than originally allowed. It should be possible to also enable RCU path walking when the glock is already cached. Thats a bit more complicated though, so left for a future patch. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com> Cc: Nick Piggin <npiggin@gmail.com>
Diffstat (limited to 'fs/gfs2/acl.c')
-rw-r--r--fs/gfs2/acl.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/fs/gfs2/acl.c b/fs/gfs2/acl.c
index 7118f1a..cbc0715 100644
--- a/fs/gfs2/acl.c
+++ b/fs/gfs2/acl.c
@@ -80,8 +80,11 @@ int gfs2_check_acl(struct inode *inode, int mask, unsigned int flags)
struct posix_acl *acl;
int error;
- if (flags & IPERM_FLAG_RCU)
- return -ECHILD;
+ if (flags & IPERM_FLAG_RCU) {
+ if (!negative_cached_acl(inode, ACL_TYPE_ACCESS))
+ return -ECHILD;
+ return -EAGAIN;
+ }
acl = gfs2_acl_get(GFS2_I(inode), ACL_TYPE_ACCESS);
if (IS_ERR(acl))
OpenPOWER on IntegriCloud