diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2011-01-19 12:42:40 +0300 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2011-01-21 12:39:24 +0300 |
commit | 75d5cfbe4b78cc26af7b042e23f61700b50bc294 (patch) | |
tree | 189346d6c6fb7e72921d7ace2871bfd8780110da /fs/gfs2/acl.c | |
parent | bc015cb84129eb1451913cfebece270bf7a39e0f (diff) | |
download | linux-75d5cfbe4b78cc26af7b042e23f61700b50bc294.tar.xz |
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.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/fs/gfs2/acl.c b/fs/gfs2/acl.c index 7118f1a780a9..cbc07155b1a0 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)) |