Whamcloud - gitweb
LU-8346 obdclass: protect key_set_version 48/27448/10
authorHongchao Zhang <hongchao.zhang@intel.com>
Sat, 13 Jan 2018 10:08:29 +0000 (18:08 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 25 Jan 2018 04:47:14 +0000 (04:47 +0000)
commit4538de675cc1ee05408fa912e71c65d9109d7027
tree22e9baa1dca31cc4b00e45f966d17db62d05522f
parent2182db2564fa6810bc3c35f51e0493a88a2f39a9
LU-8346 obdclass: protect key_set_version

In lu_context_refill, the key_set_version should be protected
before comparing it to version stored in the lu_context.

This patch is a supplement of the previous patch
https://review.whamcloud.com/#/c/28405/, which adds protection
for key_set_version from modification in lu_context_refill
and lu_context_key_degister.

Change-Id: I201f56214382a717cfc31ba573e06fec9fbedae4
Signed-off-by: Hongchao Zhang <hongchao.zhang@intel.com>
Reviewed-on: https://review.whamcloud.com/27448
Reviewed-by: Patrick Farrell <paf@cray.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/obdclass/lu_object.c