Whamcloud - gitweb
LU-15278 mdt: protect layout xattr
authorBobi Jam <bobijam@whamcloud.com>
Thu, 25 Nov 2021 10:39:22 +0000 (18:39 +0800)
committerJohn L. Hammond <jhammond@whamcloud.com>
Mon, 31 Jan 2022 15:39:18 +0000 (15:39 +0000)
commite4c78a98b9abb8c09cef2863822021fe28869bcf
tree3263869b2324fdbb4e98aa92100efcb7b2bb3ef7
parent625500c21ee53aef28dda4e7afc61115bf3711f5
LU-15278 mdt: protect layout xattr

During layout change, the layout xattr could be simultaneously
used by others.

This patch put the server LOVEA access in the protection of
mdt_object::mot_lov_mutex.

Lustre-change: https://review.whamcloud.com/45663
Lustre-commit: TBD (from 48bb7206fb656a35283ea7eefdec208dd6c42078)

Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Signed-off-by: John L. Hammond <jhammond@whamcloud.com>
Change-Id: Iabad4a3211b7ef74592d92b86082201687964ab2
Reviewed-on: https://review.whamcloud.com/46262
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/46327
lustre/mdt/mdt_handler.c
lustre/mdt/mdt_open.c
lustre/mdt/mdt_reint.c
lustre/mdt/mdt_xattr.c