Whamcloud - gitweb
DDN-4905 revert: "quota: lqeg_arr memmory corruption"
authorSergey Cheremencev <scherementsev@ddn.com>
Mon, 8 Apr 2024 11:25:41 +0000 (14:25 +0300)
committerAndreas Dilger <adilger@whamcloud.com>
Tue, 9 Apr 2024 21:48:43 +0000 (21:48 +0000)
commit0fe1faf20cdf119591f151242aecd7d11e29a6ce
treee013c11301c7d83a20446d580b408ca70c393b2e
parente7db43afddd40c0a27039ea704956db9202483f6
DDN-4905 revert: "quota: lqeg_arr memmory corruption"

This reverts commit 7c6d08994b23cc3ef112e3626f9402dbccf0bc2c
("LU-17034 quota: lqeg_arr memmory corruption")
as it causes following panic:

 qmt_map_lge_idx()) ASSERTION( k < lgd->lqeg_num_used ) failed: Cannot map ostidx 32 for 0000000072ee3f23
 qmt_map_lge_idx()) LBUG
 Call Trace TBD:
 libcfs_call_trace+0x6f/0xa0 [libcfs]
 lbug_with_loc+0x3f/0x70 [libcfs]
 qmt_map_lge_idx+0x7f/0x90 [lquota]
 qmt_seed_glbe_all+0x17f/0x770 [lquota]
 qmt_revalidate_lqes+0x213/0x360 [lquota]
 qmt_dqacq0+0x7d5/0x2320 [lquota]
 qmt_intent_policy+0x8d2/0xf10 [lquota]
 mdt_intent_opc+0x9a9/0xa80 [mdt]
 mdt_intent_policy+0x1fd/0x390 [mdt]
 ldlm_lock_enqueue+0x469/0xa90 [ptlrpc]
 ldlm_handle_enqueue0+0x61a/0x16c0 [ptlrpc]
 tgt_enqueue+0xa4/0x200 [ptlrpc]
 tgt_request_handle+0xc9c/0x1950 [ptlrpc]
 ptlrpc_server_handle_request+0x323/0xbd0 [ptlrpc]
 ptlrpc_main+0xbf1/0x1510 [ptlrpc]
 kthread+0x134/0x150
 ret_from_fork+0x1f/0x40
 Kernel panic - not syncing: LBUG

Fixes: 7c6d08994b ("LU-17034 quota: lqeg_arr memmory corruption")
Signed-off-by: Sergey Cheremencev <scherementsev@ddn.com>
Change-Id: Iff377529d2862c869b751b4c942b476262951570
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/54695
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/include/obd_target.h
lustre/quota/lquota_internal.h
lustre/quota/qmt_entry.c
lustre/quota/qmt_internal.h
lustre/quota/qmt_lock.c
lustre/quota/qmt_pool.c
lustre/target/tgt_pool.c
lustre/tests/conf-sanity.sh