Whamcloud - gitweb
LU-5370 mdt: return -MDT_EREMOTE_OPEN for remote open 18/11218/3
authorJohn L. Hammond <john.hammond@intel.com>
Thu, 24 Jul 2014 17:56:20 +0000 (12:56 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 11 Aug 2014 05:36:27 +0000 (05:36 +0000)
commitc0b065010beb8a5b8142b81504e62a433492ec46
tree261122711b283bba04018300374d051a223b0f2d
parent30cffb9197d3791ccfaf536449e6c1087b608a1f
LU-5370 mdt: return -MDT_EREMOTE_OPEN for remote open

Add a special magical errno MDT_EREMOTE_OPEN for communicaiton between
mdt_reint_open() and mdt_intent_reint() which means return the lock to
the client for subsequent cross ref open. Previously we used plain
-EREMOTE but other functions called in that path might return it too
and confuse us. This is not returned to the client.

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: I7a498adc341c2b52b29c94f65e66431c5de06917
Reviewed-on: http://review.whamcloud.com/11218
Tested-by: Jenkins
Reviewed-by: Fan Yong <fan.yong@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: wangdi <di.wang@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/mdt/mdt_handler.c
lustre/mdt/mdt_internal.h
lustre/mdt/mdt_open.c