-
Lai Siyao authored
Layout_change is a reint operation, and it should be handled the same as other reint operations, so that resent and replay can work correctly. Also replace the lock passed in ldlm_handle_enqueue0() with the lock taken in mdt_layout_change(). This avoids taking lock again in ldlm_handle_enqueue0(), and also makes replay eaiser. Note, before replacing, the mode is downgraded from EX to CR, because client only needs this mode, as can avoid unnecessary lock cancel later. Add missing resent reconstructor for REINT_RESYNC. Lustre-change: https://review.whamcloud.com/35465 Lustre-commit: e1bebbdf Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com> Change-Id: I328044dacbf18d03232c9bbb51271f6202e9b939 Reviewed-by: Andreas Dilger <adilger@whamcloud.com> Reviewed-by: Mike Pershin <mpershin@whamcloud.com> Signed-off-by: Minh Diep <mdiep@whamcloud.com> Reviewed-on: https://review.whamcloud.com/36376 Tested-by: jenkins <devops@whamcloud.com> Tested-by: Maloo <maloo@whamcloud.com> Reviewed-by: Oleg Drokin <green@whamcloud.com>
6a806133