Whamcloud - gitweb
LU-6245 libcfs: fix racey module handling 64/18964/5
authorJames Simmons <uja.ornl@yahoo.com>
Wed, 23 Mar 2016 23:22:40 +0000 (19:22 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 6 Apr 2016 01:39:37 +0000 (01:39 +0000)
commit42cb962d3f15f827be739ac5d02692d2643c3e07
tree43b77fc75a6b20763994747cafc905959d996783
parent4635d6235f8c8f4bb212aa59710c4f68db6acd7a
LU-6245 libcfs: fix racey module handling

While working on the upstream client Greg pointed out the
current why we handle libcfs module loading with psdev is
very racy. This patch removes the possible race.

Change-Id: Ic86aa9b0d426cc53a239ae81fc92db2d5a2b5c60
Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-on: http://review.whamcloud.com/18964
Reviewed-by: Frank Zago <fzago@cray.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
libcfs/libcfs/linux/linux-module.c