Whamcloud - gitweb
LU-10244 osc: add a bit to indicate osc_page in cache tree 24/31524/2
authorBobi Jam <bobijam.xu@intel.com>
Wed, 15 Nov 2017 07:02:30 +0000 (15:02 +0800)
committerJohn L. Hammond <john.hammond@intel.com>
Thu, 12 Apr 2018 15:43:38 +0000 (15:43 +0000)
commit470fb9f3041fbc7e5ee397ad1411240c8aae58bb
tree3f3fd76bfdc02ce39f33dcaa843d5629402a36b0
parent158b6382704947c0d23d5b79d2b94bdc7a04af10
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.

Lustre-change: https://review.whamcloud.com/30096
Lustre-commit: ed91ee6bd642e031dab781ab4ebf6524476beddd

Signed-off-by: Bobi Jam <bobijam.xu@intel.com>
Change-Id: Ifcfe158d10c23a40c116414c7f4f86b257e1fa76
Reviewed-by: Jinshan Xiong <jinshan.xiong@intel.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-on: https://review.whamcloud.com/31524
Tested-by: Jenkins
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
lustre/osc/osc_cl_internal.h
lustre/osc/osc_page.c