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 <paf0187@gmail.com>
Change-Id: I596b9ac349a6dd1a633c6671d19d15bbf61b9fa2
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/56957
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Zhenyu Xu <bobijam@hotmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
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;
{
ENTRY;
- assert_spin_locked(&cli->cl_loi_list_lock);
if (!(pga->bp_flag & OBD_BRW_FROM_GRANT)) {
EXIT;
return;