From 2c7e62340dc65fc9e8047a11c738a05e9e4fc416 Mon Sep 17 00:00:00 2001 From: Patrick Farrell Date: Wed, 8 May 2024 10:36:55 -0400 Subject: [PATCH] LU-17831 llite: remove refcount assert This refcount assert costs us a few % in page freeing and it comes immediately after a dec_and_test. Signed-off-by: Patrick Farrell Change-Id: I8de3369cbbaf484e1e0fce27ae3e62cad1ae5282 Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/55054 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Arshad Hussain Reviewed-by: Oleg Drokin --- lustre/obdclass/cl_page.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lustre/obdclass/cl_page.c b/lustre/obdclass/cl_page.c index 9cda63a..89eaa60 100644 --- a/lustre/obdclass/cl_page.c +++ b/lustre/obdclass/cl_page.c @@ -468,7 +468,6 @@ void cl_batch_put(const struct lu_env *env, struct cl_page *page, PASSERT(env, page, page->cp_owner == NULL); } - LASSERT(refcount_read(&page->cp_ref) == 0); PASSERT(env, page, list_empty(&page->cp_batch)); /* Page is no longer reachable by other threads. Tear it down */ cl_page_free(env, page, fbatch); -- 1.8.3.1