From: Jinshan Xiong Date: Sun, 27 Apr 2014 17:06:50 +0000 (-0400) Subject: staging/lustre/llite: access layout version under a lock X-Git-Tag: omap-for-v3.16/fixes-against-rc1~39^2~36^2~1139 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09aed8a59cb659f6cbdf5b1f5c3174e7e3d306aa;p=pandora-kernel.git staging/lustre/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 Reviewed-on: http://review.whamcloud.com/8689 Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3254 Reviewed-by: Lai Siyao Reviewed-by: Bobi Jam Signed-off-by: Oleg Drokin Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed