Whamcloud - gitweb
LU-13599 mdt: fix logic of skipping local locks in reply_state 91/39191/4
authorMikhail Pershin <mpershin@whamcloud.com>
Fri, 26 Jun 2020 15:17:06 +0000 (18:17 +0300)
committerOleg Drokin <green@whamcloud.com>
Fri, 7 Aug 2020 21:12:39 +0000 (21:12 +0000)
commitdec36101852a8d300a6fdcc28c8d723989544aaa
treed5734aa63b26cb770907395fa9e1c0e41b6d7e65
parent7cc0b292ecdbc578b3ca4d6312b7c74874712fdc
LU-13599 mdt: fix logic of skipping local locks in reply_state

The mdt_reint_migrate() controls amount of local locks taken and
prevent the saving too many locks in reply_state by doing local
sync instead. Meanwhile there is flaw in logic of doing that so
they are saved always causing assertion in ptlrpc_save_lock().

Patch adds 'do_sync' local parameter into consideration while
deciding to save local lock or not.

Signed-off-by: Mikhail Pershin <mpershin@whamcloud.com>
Change-Id: I98cca84825ce5789094fbceb5d1f7975410d134b
Reviewed-on: https://review.whamcloud.com/39191
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Stephane Thiell <sthiell@stanford.edu>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/mdt/mdt_reint.c
lustre/tests/sanity.sh