Whamcloud - gitweb
LU-8346 obdclass: Set lc_version 05/28405/2
authorPatrick Farrell <paf@cray.com>
Tue, 11 Jul 2017 14:31:46 +0000 (09:31 -0500)
committerJohn L. Hammond <john.hammond@intel.com>
Mon, 21 Aug 2017 20:26:51 +0000 (20:26 +0000)
The patch LU-8346 obdclass: guarantee all keys filled
removed the setting of lc_version, which makes us always
refill cached envs.  This is very expensive, particularly
for fast reads.

Original commit e58f8d609a81576eaf5bc9d0fa53bef274a01bf,
https://review.whamcloud.com/26099

Change-Id: I13ba7d19185b899d1f68d244365160539e881b8e
Signed-off-by: Patrick Farrell <paf@cray.com>
Reviewed-on: https://review.whamcloud.com/27994
Reviewed-by: Jinshan Xiong <jinshan.xiong@intel.com>
Tested-by: Jenkins
Reviewed-by: Hongchao Zhang <hongchao.zhang@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
(cherry picked from commit 96f3fb788c230872e6d31185367a55ec3c4fedbc)
Reviewed-on: https://review.whamcloud.com/28405
Reviewed-by: John L. Hammond <john.hammond@intel.com>
lustre/obdclass/lu_object.c

index 296564f..751e3d1 100644 (file)
@@ -1666,6 +1666,8 @@ refill:
                goto refill;
        }
 
+       ctx->lc_version = key_set_version;
+
        atomic_dec(&lu_key_initing_cnt);
        read_unlock(&lu_keys_guard);
        return 0;