Whamcloud - gitweb
LU-9229 osc: osc page lru list race 86/26086/4
authorBobi Jam <bobijam.xu@intel.com>
Mon, 14 Mar 2016 02:53:39 +0000 (10:53 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 3 Jun 2017 03:57:02 +0000 (03:57 +0000)
commitc8c7598536daa2fb943b66681240436391217078
treea4fe3d6000cb6e2f5bf7a30107c1ac8c4d40d686
parent06159785986aef19a06a69d02b7f203fc98b377a
LU-9229 osc: osc page lru list race

In osc_lru_use() the osc page's ops_lru access is not protected, which
could race with osc_lru_del() and ensuing that
client_obd::cl_lru_in_list counter decreased twice for a single page.

Signed-off-by: Bobi Jam <bobijam.xu@intel.com>
Change-Id: I41179112693f77113fdf43d3f859bf778d7bbc44
Reviewed-on: https://review.whamcloud.com/26086
Tested-by: Jenkins
Reviewed-by: Jinshan Xiong <jinshan.xiong@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Li Xi <lixi@ddn.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/osc/osc_page.c