Whamcloud - gitweb
LU-5062 llite: Solve a race to access lli_has_smd in read case 39/12139/3
authorJinshan Xiong <jinshan.xiong@intel.com>
Tue, 30 Sep 2014 18:44:54 +0000 (11:44 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 1 Dec 2014 04:19:29 +0000 (04:19 +0000)
commit078dee1448c2995257923dc712943eab2c78e48e
tree7f2f9862b05d7cf8e66911629fd3c88ab4d8d911
parent88faf0ab6e2ebdbc3a3c70010fe04cf56f11ea97
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.

Patch on master: http://review.whamcloud.com/10760

Test-Parameters: alwaysuploadlogs testlist=metadata-updates

Signed-off-by: Jinshan Xiong <jinshan.xiong@intel.com>
Change-Id: I70cb1888b42e0e9928f8346359e2b1f554fe4e8f
Reviewed-on: http://review.whamcloud.com/12139
Tested-by: Jenkins
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