Whamcloud - gitweb
LU-9306 kuc: initialize kkuc_groups at module init time 83/26883/4
authorJohn L. Hammond <john.hammond@intel.com>
Fri, 28 Apr 2017 15:12:01 +0000 (10:12 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 5 May 2017 00:42:25 +0000 (00:42 +0000)
commit37bbe9a1bf33b77d3f239ea69ce052e99f09308d
tree9db465bf92f0543accbaefa7e013d987493cd0c8
parent137e2efc6b471e6c097e49d2f3af0a5598ae361f
LU-9306 kuc: initialize kkuc_groups at module init time

Some kkuc functions use kkuc_groups[group].next == NULL to test for an
empty group list. This is incorrect if the group was previously added
to but not empty. Remove all next == NULL tests and use module load
time initialization of the kkuc_groups array.

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: I0d6af7b8584f18d1dc03873993d6aac55b1677a9
Reviewed-on: https://review.whamcloud.com/26883
Tested-by: Jenkins
Reviewed-by: Frank Zago <fzago@cray.com>
Reviewed-by: Faccini Bruno <bruno.faccini@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Henri Doreau <henri.doreau@cea.fr>
Reviewed-by: Quentin Bouget <quentin.bouget@cea.fr>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/lustre_kernelcomm.h
lustre/obdclass/class_obd.c
lustre/obdclass/kernelcomm.c