Whamcloud - gitweb
LU-13437 uapi: add OBD_CONNECT2_GETATTR_PFID 70/39770/2
authorLai Siyao <lai.siyao@whamcloud.com>
Mon, 6 Jul 2020 13:03:59 +0000 (21:03 +0800)
committerOleg Drokin <green@whamcloud.com>
Sat, 19 Sep 2020 18:13:41 +0000 (18:13 +0000)
commitdaa9148294c4e4fb3242c1b4b0a7f28e99ecef51
tree4f8c7be8147d1c807b0d5fecd8b089416cc56160
parent23fa920b0ceef8672d0ee6af9c023f96039c61e3
LU-13437 uapi: add OBD_CONNECT2_GETATTR_PFID

Add OBD_CONNECT2_GETATTR_PFID connect flag to pack parent FID in
getattr request, which will be used to check whether target is
remote object, if so, don't take LOOKUP lock, otherwise client
may see stale directory entries.

Lustre-change: https://review.whamcloud.com/39289
Lustre-commit: f384a8733c41e43ebc2db3c542287a700ace8cbb
Test-parameters: trivial

Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Neil Brown <neilb@suse.de>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Change-Id: Ibdf880934456f255f83cd4bac9d61ab5e1ed7330
Reviewed-on: https://review.whamcloud.com/39770
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/include/uapi/linux/lustre/lustre_idl.h
lustre/obdclass/lprocfs_status.c
lustre/ptlrpc/wiretest.c
lustre/utils/wirecheck.c
lustre/utils/wiretest.c