Merge tag 'mm-nonmm-stable-2023-04-27-16-01' of git://git.kernel.org/pub/scm/linux...
[platform/kernel/linux-starfive.git] / fs / nfs / nfs3acl.c
index 349cc4f..18d8f65 100644 (file)
@@ -21,9 +21,8 @@ static void nfs3_prepare_get_acl(struct posix_acl **p)
 {
        struct posix_acl *sentinel = uncached_acl_sentinel(current);
 
-       if (cmpxchg(p, ACL_NOT_CACHED, sentinel) != ACL_NOT_CACHED) {
-               /* Not the first reader or sentinel already in place. */
-       }
+       /* If the ACL isn't being read yet, set our sentinel. */
+       cmpxchg(p, ACL_NOT_CACHED, sentinel);
 }
 
 static void nfs3_complete_get_acl(struct posix_acl **p, struct posix_acl *acl)