Whamcloud - gitweb
LU-2275 mdt: Avoid setting positive dispositions too early
authorOleg Drokin <green@whamcloud.com>
Mon, 5 Nov 2012 05:21:06 +0000 (00:21 -0500)
committerOleg Drokin <green@whamcloud.com>
Thu, 10 Jan 2013 15:17:54 +0000 (10:17 -0500)
commitf5ecf580adc319fd9abe41bd79389b50015d5c13
tree66f348e47f087b5727d9481a7124f2ddda993ebf
parent50f2b9d9036079879e15c3d66f8de4ca37f4a1da
LU-2275 mdt: Avoid setting positive dispositions too early

mdt_finish_open and mdt_open_by_fid_lock set DISP_LOOKUP_POS
and DISP_OPEN_OPEN a bit too eagerly only to have later code add
negative disposition and a lookup error, confusing a client
with such self-contradicting replies in the end.

This patch only sets positive dispositions when we are sure
not to get them overruled.

Change-Id: I3389f1d59b21f4a9e4c16ca75b398785ea6e130c
Signed-off-by: Oleg Drokin <green@whamcloud.com
Reviewed-on: http://review.whamcloud.com/4459
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: wangdi <di.wang@intel.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/mdt/mdt_open.c