From: Patrick Farrell Date: Mon, 11 Nov 2024 16:54:33 +0000 (-0500) Subject: LU-13419 osc: Remove unnecessary spinlock assertion X-Git-Tag: 2.16.51~46 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=be4995dc69e97f68cf92618a88af0731d5ad8d92;p=fs%2Flustre-release.git LU-13419 osc: Remove unnecessary spinlock assertion This spinlock assertion notably increases the time spent in getting grant with many threads to few OSCs, but adds little value. Remove it. Test-Parameters: trivial Signed-off-by: Patrick Farrell Change-Id: I596b9ac349a6dd1a633c6671d19d15bbf61b9fa2 Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/56957 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Zhenyu Xu Reviewed-by: Oleg Drokin --- diff --git a/lustre/osc/osc_cache.c b/lustre/osc/osc_cache.c index a7a97e7..22cd0136 100644 --- a/lustre/osc/osc_cache.c +++ b/lustre/osc/osc_cache.c @@ -1347,7 +1347,6 @@ static int osc_completion(const struct lu_env *env, struct osc_object *osc, static void osc_consume_write_grant(struct client_obd *cli, struct brw_page *pga) { - assert_spin_locked(&cli->cl_loi_list_lock); LASSERT(!(pga->bp_flag & OBD_BRW_FROM_GRANT)); cli->cl_dirty_pages++; pga->bp_flag |= OBD_BRW_FROM_GRANT; @@ -1362,7 +1361,6 @@ static void osc_release_write_grant(struct client_obd *cli, { ENTRY; - assert_spin_locked(&cli->cl_loi_list_lock); if (!(pga->bp_flag & OBD_BRW_FROM_GRANT)) { EXIT; return;