From df7bfbb1c7890deed15fd85e75da70d88be2ef7f Mon Sep 17 00:00:00 2001 From: James Simmons Date: Tue, 12 Feb 2019 18:59:19 -0500 Subject: [PATCH] LU-11838 llite: remove assert for acl refcount The purpose of this asssert to was to ensure lustre was properly managing its posix_acl access. This test is invalid due to the VFS layer also taking references on the posix_acl. In reality their is no simple way to detect this class of mistakes. * lastest kernels remove this refcount * Linux-commit: 6a42e615a28bad49f2e04829486e94190c066390 Change-Id: I167f2de449a2e8357517f33c2e81a25b25104d57 Signed-off-by: James Simmons Reviewed-on: https://review.whamcloud.com/34236 Reviewed-by: Andreas Dilger Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Ben Evans Reviewed-by: Patrick Farrell Reviewed-by: Oleg Drokin --- lustre/llite/llite_lib.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lustre/llite/llite_lib.c b/lustre/llite/llite_lib.c index 8dcabf6..9766890 100644 --- a/lustre/llite/llite_lib.c +++ b/lustre/llite/llite_lib.c @@ -1501,7 +1501,6 @@ void ll_clear_inode(struct inode *inode) #ifdef CONFIG_FS_POSIX_ACL forget_all_cached_acls(inode); if (lli->lli_posix_acl) { - LASSERT(atomic_read(&lli->lli_posix_acl->a_refcount) == 1); posix_acl_release(lli->lli_posix_acl); lli->lli_posix_acl = NULL; } -- 1.8.3.1