Whamcloud - gitweb
LU-3254 llite: access layout version under a lock
authorJinshan Xiong <jinshan.xiong@intel.com>
Tue, 31 Dec 2013 21:49:33 +0000 (13:49 -0800)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 15 May 2014 19:02:31 +0000 (15:02 -0400)
commit014b963e44adaf223d9ac693d3713d0a18a30195
tree7e2bff22a87b8469b5a937e96260f1bdb2a7758c
parente3a54f419aa622784fec8b769bbdb48f19167455
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