From: Jinshan Xiong Date: Mon, 2 Feb 2015 02:52:13 +0000 (-0500) Subject: staging/lustre/llite: Solve a race to access lli_has_smd in read case X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~83^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c309612ddb9107c3fdbd5233198d59708114bc4;p=pandora-kernel.git staging/lustre/llite: Solve a race to access lli_has_smd in read case In vvp_io_read_lock(), it used to decide if to add read lock by checking lli_has_smd. Accessing lli_has_smd is racy when an empty file is turned into raid0, therefore, it may result in read requests are issued without corresponding lock. Signed-off-by: Jinshan Xiong Reviewed-on: http://review.whamcloud.com/12139 Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5062 Reviewed-by: Bobi Jam Signed-off-by: Oleg Drokin Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed