summaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorJinshan Xiong <jinshan.xiong@intel.com>2015-02-01 21:52:13 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-02-07 17:32:33 +0800
commit4c309612ddb9107c3fdbd5233198d59708114bc4 (patch)
treef192b5630ac257ac549d13635ca98e10c19e25fa /net/switchdev/switchdev.c
parentd27f9b077e113b0fa46e466465233a5e51085228 (diff)
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 <jinshan.xiong@intel.com> Reviewed-on: http://review.whamcloud.com/12139 Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5062 Reviewed-by: Bobi Jam <bobijam@gmail.com> Signed-off-by: Oleg Drokin <oleg.drokin@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions