Whamcloud - gitweb
LU-9859 libcfs: initialize bit_wait_table 74/38574/4
authorJames Simmons <jsimmons@infradead.org>
Fri, 19 Jul 2019 12:38:44 +0000 (08:38 -0400)
committerOleg Drokin <green@whamcloud.com>
Thu, 21 May 2020 06:08:06 +0000 (06:08 +0000)
commitd2cbe62fd1b51dabb65486a2e535203591d5a165
treefd36c9f2c63cbea7b6b96b9d2a34d4b3a6f54798
parentceb45b5fbe35a65539b76678d8187a902504b138
LU-9859 libcfs: initialize bit_wait_table

With older platforms wait_event_var() is missing so we needed to
provide are own version. This included creating a local
bit_wait_table like the kernel has. That table was never properly
initialized so it can cause failures under the right conditions.

Test-Parameters: trivial

Lustre-commit: https://review.whamcloud.com/35567
Lustre-change: 916643c4b8d136c9c96afa5cd21d1eb6030d148c

Fixes: 372ef85512 ("LU-11089 obd: use wait_event_var() in lu_context_key_degister()")
Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Change-Id: I310d37da7c1b54166224b367446cc905c02ab8bc
Reviewed-on: https://review.whamcloud.com/38574
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
libcfs/include/libcfs/linux/linux-wait.h
libcfs/libcfs/linux/linux-wait.c
libcfs/libcfs/module.c