Whamcloud - gitweb
LU-14110 obdclass: Protect cl_env_percpu[] 65/40565/11
authorEtienne AUJAMES <eaujames@ddn.com>
Tue, 3 Nov 2020 14:35:17 +0000 (15:35 +0100)
committerOleg Drokin <green@whamcloud.com>
Mon, 22 Mar 2021 16:25:49 +0000 (16:25 +0000)
commit881551fbb7335694b89a877072bcda0aeaf8705c
tree8c20477c495dde518ac1bd7b8a9e7e86604f2f41
parent36b1e4c4142f8a7251aa3b6b1ec9ecce4799114f
LU-14110 obdclass: Protect cl_env_percpu[]

cl_env_percpu is not protected against multi client mounts on the
same node: "keys_fill" could be called with the same cl_env_percpu
context by several mount processes (race on lu_context.lc_value).

This patch add a mutex for cl_env_percpu to proctect contexts
"refill".

Signed-off-by: Etienne AUJAMES <eaujames@ddn.com>
Change-Id: Icfd6f3715899fa4ac5279e932f462e7cf29d98bd
Reviewed-on: https://review.whamcloud.com/40565
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Neil Brown <neilb@suse.de>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/obd_support.h
lustre/llite/llite_lib.c
lustre/obdclass/cl_object.c
lustre/tests/sanityn.sh