Whamcloud - gitweb
LU-5062 llite: Solve a race to access lli_has_smd in read case 60/10760/3
authorJinshan Xiong <jinshan.xiong@intel.com>
Thu, 19 Jun 2014 23:21:09 +0000 (16:21 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 24 Jun 2014 16:39:41 +0000 (16:39 +0000)
commitc9739496bb089f82b7b7d0952a3b2c1c2bcc616d
tree794f5973babe9fd1579b0b21a8d6866065b21bd3
parent1f5fa56a0b824e684c32d382d0108c92d9125c5a
LU-5062 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 <jinshan.xiong@intel.com>
Change-Id: I70cb1888b42e0e9928f8346359e2b1f554fe4e8f
Reviewed-on: http://review.whamcloud.com/10760
Tested-by: Jenkins
Reviewed-by: Patrick Farrell <paf@cray.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Bobi Jam <bobijam@gmail.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/lclient.h
lustre/lclient/lcommon_cl.c
lustre/llite/vvp_io.c
lustre/llite/vvp_lock.c