Whamcloud - gitweb
LU-3254 llite: access layout version under a lock 89/8689/2
authorJinshan Xiong <jinshan.xiong@intel.com>
Tue, 31 Dec 2013 21:49:33 +0000 (13:49 -0800)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 25 Mar 2014 16:47:27 +0000 (16:47 +0000)
commit681101c0a1eceed0caa6fc5b7e748ba868e436cf
tree6da4110c494101eca196802320c475e553fbe21d
parent6cce4eb9e85267c656e3defe775689c4202fa2f3
LU-3254 llite: access layout version under a lock

We used to access layout version under the protection of ldlm
lock, this introduces extra overhead for dlm lock matching.

In this patch, lli_layout_lock is introduced to access the layout
version. Also, when a layout lock is losing, we should tear down
mmap of the correspoding inode to avoid stale data accessing in the
future.

This is part of technical verification of replication.

Signed-off-by: Jinshan Xiong <jinshan.xiong@intel.com>
Change-Id: I657c6a8b27f2cdaf468dc208c43c1d92f3843705
Reviewed-on: http://review.whamcloud.com/8689
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Reviewed-by: Bobi Jam <bobijam@gmail.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/llite/file.c
lustre/llite/llite_internal.h
lustre/llite/llite_lib.c
lustre/llite/vvp_io.c
lustre/llite/vvp_object.c
lustre/tests/sanityn.sh