-
由 Sam Lang 提交于
We don't need to use up entropy to choose an mds, so use prandom_u32() to get a pseudo-random number. Also, we don't need to choose a random mds if only one mds is available, so add special casing for the common case. Fixes http://tracker.ceph.com/issues/3579Signed-off-by: NSam Lang <sam.lang@inktank.com> Reviewed-by: NGreg Farnum <greg@inktank.com> Reviewed-by: NAlex Elder <elder@inktank.com>
a84cd293