Whamcloud - gitweb
LU-9859 libcfs: initialize bit_wait_table 67/35567/3
authorJames Simmons <jsimmons@infradead.org>
Fri, 19 Jul 2019 12:38:44 +0000 (08:38 -0400)
committerOleg Drokin <green@whamcloud.com>
Sat, 27 Jul 2019 00:21:39 +0000 (00:21 +0000)
commit916643c4b8d136c9c96afa5cd21d1eb6030d148c
treee67e0675a1fd1986c70a8ecb320c80c2f480d058
parentbac36f90818d70c211a40bbae6849abb044319c7
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

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/35567
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Neil Brown <neilb@suse.com>
Reviewed-by: Shaun Tancheff <stancheff@cray.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