Whamcloud - gitweb
LU-16057 obdclass: set OBD_MD_FLGROUP for ladvise RPC 80/48080/2
authorLi Dongyang <dongyangli@ddn.com>
Fri, 29 Jul 2022 06:35:41 +0000 (16:35 +1000)
committerOleg Drokin <green@whamcloud.com>
Sat, 24 Sep 2022 20:28:10 +0000 (20:28 +0000)
commitbee803c6e440ba6b55e0ff356e5324f44cfa63eb
treeb613d65ed0a0b7e24c33e6a0e9aedcfb66a1fd4d
parentaaef545cff2dd958418ec9fb364d4bbe1408edb9
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.

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