Whamcloud - gitweb
LU-14642 flr: allow layout version update from client/MDS
authorBobi Jam <bobijam@whamcloud.com>
Wed, 13 Apr 2022 15:15:22 +0000 (23:15 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 23 Sep 2022 16:28:34 +0000 (16:28 +0000)
commit7bf63d0a9e8e171e76a36a04443e585ab0dacbaf
tree73db3d026c1f8a173872a793c9f614a3b7c86d97
parent922555cf2ab37f9e8b9b05726baf94f8e8a97f43
LU-14642 flr: allow layout version update from client/MDS

Client write/punch request always carries its layout version so
that OFD can reject the request if the carried layout version
is a stale one.

This patch allows MDS as well as client to update new layout version
to OST objects. And during resync write, all OST objects will get
layout version updated.

Lustre-change: https://review.whamcloud.com/45443
Lustre-commit: fa6574150b6f745a668fe69b2d6d970068

Fixes: 7d97777a5d ("LU-14642 flr: abolish MDS transfer layout version to OST")
Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Change-Id: I9f27af354875d48adda3361f6c8ea5a5f6def73b
Reviewed-on: https://review.whamcloud.com/47097
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/lod/lod_object.c
lustre/ofd/ofd_io.c
lustre/ofd/ofd_objects.c
lustre/tests/sanity-flr.sh