Whamcloud - gitweb
LU-14642 flr: allow layout version update from client/MDS 43/45443/21
authorBobi Jam <bobijam@whamcloud.com>
Mon, 25 Oct 2021 08:45:29 +0000 (16:45 +0800)
committerOleg Drokin <green@whamcloud.com>
Sat, 17 Sep 2022 06:23:05 +0000 (06:23 +0000)
commitfa6574150b6f745a668fe69b2d6d970068a4cff1
tree809e231296b1b49d79c64c71cfac42b45ea3cce7
parent1b09fb2296993c52e5d90d99ceb43c8c54c5c7a2
LU-14642 flr: allow layout version update from client/MDS

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

This patch makes OFD allow layout version change request from
client as well as MDS. And during resync write, all OST objects
will get layout version updated.

Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Change-Id: I655044f69a4509a2b0cfe99f86de2ce4ee846979
Reviewed-on: https://review.whamcloud.com/45443
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
12 files changed:
lustre/include/obd_support.h
lustre/include/uapi/linux/lustre/lustre_user.h
lustre/llite/file.c
lustre/lod/lod_internal.h
lustre/lod/lod_object.c
lustre/lod/lod_qos.c
lustre/mdd/mdd_object.c
lustre/ofd/ofd_internal.h
lustre/ofd/ofd_io.c
lustre/ofd/ofd_objects.c
lustre/osp/osp_sync.c
lustre/tests/sanity-flr.sh