Whamcloud - gitweb
LU-16057 obdclass: set OBD_MD_FLGROUP for ladvise RPC 01/53501/2
authorLi Dongyang <dongyangli@ddn.com>
Fri, 29 Jul 2022 06:35:41 +0000 (16:35 +1000)
committerOleg Drokin <green@whamcloud.com>
Wed, 17 Apr 2024 05:23:01 +0000 (05:23 +0000)
commit6b7af79f6d2ea487e2af96fcb84b83b275ac9f8c
tree2a47dc743112d88f5ba1a0f9b45a721a4200360e
parent7c9a1eaf6419ffadeebcbf21f2735ffda59f0694
LU-16057 obdclass: set OBD_MD_FLGROUP for ladvise RPC

ladvise RPC doesn't have OBD_MD_FLGROUP set, when RPC
reaches server, tgt_validate_obdo() will corrupt the FID
if it's seq is in FID_SEQ_NORMAL range.

Do not mess with seq in obdo_to_ioobj() and tgt_validate_obdo(),
since 2.0 all RPCs should have OBD_MD_FLGROUP set.

Add OBD_MD_FLGROUP for ladvise RPC to fix new client talking
to old servers.

Lustre-change: https://review.whamcloud.com/48080
Lustre-commit: bee803c6e440ba6b55e0ff356e5324f44cfa63eb

Change-Id: I373b7f32458b18e29d9bb716a912fe4a54eccac5
Signed-off-by: Li Dongyang <dongyangli@ddn.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/53501
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/obdclass/obdo.c
lustre/osc/osc_io.c
lustre/target/tgt_handler.c