From: fanyong Date: Sun, 8 Oct 2006 10:21:06 +0000 (+0000) Subject: The rootsquash info will be changed without notify client. X-Git-Tag: v1_8_0_110~486^2~642 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=5b34e8078247e33f28cfc5d55144ecd792746d0f;p=fs%2Flustre-release.git The rootsquash info will be changed without notify client. So the client will update perm actively. (sanity-sec test_3) --- diff --git a/lustre/llite/remote_perm.c b/lustre/llite/remote_perm.c index 7fdb295..0b2eabf 100644 --- a/lustre/llite/remote_perm.c +++ b/lustre/llite/remote_perm.c @@ -236,7 +236,7 @@ int lustre_check_remote_perm(struct inode *inode, int mask) check: rc = do_check_remote_perm(lli, mask); - if (rc != -ENOENT) + if (!rc || ((rc != -ENOENT) && i)) RETURN(rc); might_sleep(); @@ -244,7 +244,7 @@ check: down(&lli->lli_rmtperm_sem); /* check again */ rc = do_check_remote_perm(lli, mask); - if (rc != -ENOENT) { + if (!rc || ((rc != -ENOENT) && i)) { up(&lli->lli_rmtperm_sem); RETURN(rc); }