Whamcloud - gitweb
LU-10244 osc: add a bit to indicate osc_page in cache tree 96/30096/6
authorBobi Jam <bobijam.xu@intel.com>
Wed, 15 Nov 2017 07:02:30 +0000 (15:02 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 3 Mar 2018 04:29:30 +0000 (04:29 +0000)
commited91ee6bd642e031dab781ab4ebf6524476beddd
tree0c70fe63c401ce2183b245aa2cd4a5a6c4d9ca75
parent9d6285695745b0a1289a2827d112bd18a687ab34
LU-10244 osc: add a bit to indicate osc_page in cache tree

Add osc_page::ops_intree to indicate whether the osc_page is in the
osc_object's cache tree, so that when page cannot insert in the
cache as race happens, the cleanup code won't try to remove it from
the cache.

Signed-off-by: Bobi Jam <bobijam.xu@intel.com>
Change-Id: Ifcfe158d10c23a40c116414c7f4f86b257e1fa76
Reviewed-on: https://review.whamcloud.com/30096
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Jinshan Xiong <jinshan.xiong@intel.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/lustre_osc.h
lustre/osc/osc_page.c