Whamcloud - gitweb
LU-6578 statahead: drop support for remote entry 67/15767/12
authorLai Siyao <lai.siyao@intel.com>
Tue, 28 Jul 2015 02:44:55 +0000 (10:44 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 22 Sep 2015 23:22:58 +0000 (23:22 +0000)
commitc0944cc831183a3af9adc7d41cca222b636eec2f
tree703ac2219deb955013687d9dd4e53af396fc3305
parente686e57bada3cbcd0fe447b95b76a49d988c2ceb
LU-6578 statahead: drop support for remote entry

This patch dropped support for remote entry statahead, because it
needs 2 async RPCs to fetch both LOOKUP lock from parent MDT and
UPDATE lock from client MDT, which is complicated. And not
supporting remote entry statahead won't cause any issue.

* pack child fid in statahead request.
* lmv_intent_getattr_async() will compare parent and child MDT,
  if child is remote, return -ENOTSUPP.

Signed-off-by: Lai Siyao <lai.siyao@intel.com>
Change-Id: I8c075bab0a716f194eac3c338ffbdd37f787eff6
Reviewed-on: http://review.whamcloud.com/15767
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: wangdi <di.wang@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/obd.h
lustre/include/obd_class.h
lustre/llite/statahead.c
lustre/lmv/lmv_obd.c
lustre/mdc/mdc_internal.h
lustre/mdc/mdc_locks.c