Whamcloud - gitweb
LU-12495 obdclass: generate random u64 max correctly 94/35394/5
authorLai Siyao <lai.siyao@whamcloud.com>
Fri, 28 Jun 2019 17:36:27 +0000 (01:36 +0800)
committerOleg Drokin <green@whamcloud.com>
Sun, 7 Jul 2019 15:16:05 +0000 (15:16 +0000)
commit645b72c5c0586e2183933ee52ad43d91c2eb3ad6
tree6314ac310afb81cf7060d31626d75c1537fdb9ea
parent3ec13d260bf6b18dd741d38f16eaf5cf567b8aef
LU-12495 obdclass: generate random u64 max correctly

Generate random u64 max number correctly, and make it an obdclass
function lu_prandom_u64_max().

Fixes: 7a707d4828 (libcfs: replace cfs_rand() with prandom_u32_max())

Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: I2b94a42b42539be319f358d7af2a82dc8b26117c
Reviewed-on: https://review.whamcloud.com/35394
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/lu_object.h
lustre/lmv/lmv_qos.c
lustre/lod/lod_qos.c
lustre/obdclass/lu_qos.c