Whamcloud - gitweb
LU-3205 llite: Set layout_gen before compatibility check
authorJinshan Xiong <jinshan.xiong@intel.com>
Tue, 23 Apr 2013 23:59:56 +0000 (16:59 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 27 Apr 2013 20:08:39 +0000 (16:08 -0400)
commit6e17f3dceb11704d15bafc6b80f5973ced3235df
tree54a0c68af5f485281d13c6b1bc06494543375dcb
parent10cf5e4ec079fed1fa339240e00c027232f7971e
LU-3205 llite: Set layout_gen before compatibility check

We should set IO's layout generation to current generation of inode,
no matter what it is. Otherwise, it will go into an infinite loop
on layout change check.

Signed-off-by: Jinshan Xiong <jinshan.xiong@intel.com>
Change-Id: I9f1f0d9ae0dd53dea130db46bbcbdbd29526b6eb
Reviewed-on: http://review.whamcloud.com/6137
Tested-by: Hudson
Reviewed-by: Niu Yawei <yawei.niu@intel.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/llite/file.c