Whamcloud - gitweb
LU-12914 mdt: mdt_prep_ma_buf_from_rep() is called twice 11/36611/3
authorBruno Faccini <bruno.faccini@intel.com>
Wed, 30 Oct 2019 10:38:48 +0000 (11:38 +0100)
committerOleg Drokin <green@whamcloud.com>
Sun, 1 Mar 2020 05:34:44 +0000 (05:34 +0000)
commit718388cbf68d8bcac4e4a24f3ca88f0da5891488
tree40e0592fdd9b2f4a69e4840ddcf2a531cb00463d
parent7de9babe6f9af6dfdb20360211f8ecea344b0500
LU-12914 mdt: mdt_prep_ma_buf_from_rep() is called twice

In some rare cases (replay of file open with O_LOV_DELAY_CREATE
when object found dead on mdt) mdt_prep_ma_buf_from_rep() can
be called twice (in either mdt_reint_open() and mdt_open_by_fid())
during the same request handling.
So remove assert checking if LMV or LOV has already been found and
set in ma.

Signed-off-by: Bruno Faccini <bruno.faccini@intel.com>
Change-Id: I78e0456ea59c37cab4276383c75c4fa5cc9f4829
Reviewed-on: https://review.whamcloud.com/36611
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Patrick Farrell <farr0186@gmail.com>
Reviewed-by: Lai Siyao <lai.siyao@whamcloud.com>
Reviewed-by: Mike Pershin <mpershin@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/mdt/mdt_open.c