Whamcloud - gitweb
LU-14459 mdt: restripe parent may be a stripe
authorLai Siyao <lai.siyao@whamcloud.com>
Mon, 12 Apr 2021 03:30:13 +0000 (11:30 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Wed, 4 Aug 2021 18:07:05 +0000 (18:07 +0000)
commit0f52ee416b65346717af86516e465be38e77eccc
tree20d57f2bf499f5cae8ae36128eec9be71beeae0a
parent5ba8ac750086ab6f74cd4fe0b94feee7017baa33
LU-14459 mdt: restripe parent may be a stripe

mdt_restripe() check parent LMV sanity with lmv_is_sane(), but parent
may be a stripe, use lmv_is_sane2() instead.

Clear lmv_migrate_hash/offset in layout shrink/update, though it
won't cause any issue, it's strange to see values set in debug logs.

Add more race check between directory restripe, auto-split and
migration.

Lustre-change: https://review.whamcloud.com/43290
Lustre-commit: a84efc8607ae8057499a8800699f336e821b03d8

Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: I38950a07a8c9a8b4b20a2fd7aff229d27dbb403c
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Hongchao Zhang <hongchao@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/44458
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/lod/lod_object.c
lustre/mdt/mdt_reint.c
lustre/mdt/mdt_restripe.c
lustre/mdt/mdt_xattr.c