Whamcloud - gitweb
LU-7535 mdt: clear the lock handle in mdt_intent_layout() 35/17735/4
authorJohn L. Hammond <john.hammond@intel.com>
Wed, 30 Dec 2015 17:21:27 +0000 (11:21 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 6 Jan 2016 01:24:47 +0000 (01:24 +0000)
commit86c0e7d98d52ebb5b6e7c4b50a40f60fe0769a03
treeb69f05b36653db1856a204bab1db5c7720657dc4
parent08fcdbb95cd7ab3fc1246f03c3ef27c0b8a0d218
LU-7535 mdt: clear the lock handle in mdt_intent_layout()

In mdt_intent_layout() if the object cannot be found then clear the
lock handle. In recover-small add test_130c() to check that this is
handled condition is handled safely.

In recovery-small test_130[ab]() add a synt to avoid having an
unintended layout intent RPC (from writeback) hit the fault injection
point.

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: Ic2f401ff2dc8a83467b12d146f4d7ffdf70ef5da
Reviewed-on: http://review.whamcloud.com/17735
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-by: Jinshan Xiong <jinshan.xiong@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/mdt/mdt_handler.c
lustre/tests/recovery-small.sh