LU-15300 mdt: refresh LOVEA with LL granted
this change tries to fix two problems:
1) mdt_reint_open() fetches LOVEA before layout lock is taken.
this may race with another process changing the layout and
may result in a stale layout returned with a granted layout
lock - re-fetch LOVEA once layout lock is granted
2) lov_layout_change() should not apply old layouts which
can get through when MDS doesn't take layout lock
3) LFSCK shouldn't ignore layout version stored on MDS to avoid
a situation when version degrades compared to client's copy.
This patch misses an optimization and can result in a number of
useless calls to OSD to fetch LOVEA. To be fixed in a followup
patch.
Lustre-change: https://review.whamcloud.com/46413
Lustre-commit:
13557aa86904376e48a5e43256d5c1ab32c1c2d6
LU-14869 test: improve sanity-flr/200a
Make sure "flock -x" successfully returned before running mirror
resync so that it won't get into running read holding shared flock.
Lustre-change: https://review.whamcloud.com/54345
Lustre-commit:
2bf51212680b3d4117925965c368d53587bf37d4
Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Change-Id: Idee1101d152ab09947faf6d75574a8761a7690a5
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/55464
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Zhenyu Xu <bobijam@hotmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>