Whamcloud - gitweb
LU-15055 lod: run qmt_pool_* only from the MDT0000 config 59/47059/6
authorEtienne AUJAMES <etienne.aujames@cea.fr>
Wed, 13 Apr 2022 14:43:12 +0000 (16:43 +0200)
committerOleg Drokin <green@whamcloud.com>
Mon, 27 Jun 2022 04:57:15 +0000 (04:57 +0000)
commit0f158c6a093e059d89f637f31d34742078c38209
treeb0a6d44d200fe18c648361ab78be8de17abd9209
parent7c4a7c59ed9c6185da326d6df6223f4818b57769
LU-15055 lod: run qmt_pool_* only from the MDT0000 config

On the first mds (with MDT0000/QMT0000), if there is more than one MDT
target, qmt_pool_{new/del/rem/add} functions will be call several
times on QMT0000 for the same pool.

This resulting to the following error in dmseg:
LustreError: 5659:0:(qmt_pool.c:1390:qmt_pool_add_rem()) add to: can't
scratch-QMT0000 scratch-OST0000_UUID pool pool1: rc = -17

This patch run qmt_pool_* only from a record config from the MDT0000.
The qmt_pool_add_rem() dmesg error is checked on sanity-quota test_1b.

Test-Parameters: mdtcount=2 mdscount=1 testlist=sanity-quota
Fixes: 09f9fb32 ("LU-11023 quota: quota pools for OSTs")
Signed-off-by: Etienne AUJAMES <eaujames@ddn.com>
Change-Id: Ia6b712abe25a4d68770753e3408c3321181db1aa
Reviewed-on: https://review.whamcloud.com/47059
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Sergey Cheremencev <sergey.cheremencev@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/lod/lod_dev.c
lustre/quota/qmt_pool.c
lustre/tests/sanity-quota.sh