summaryrefslogtreecommitdiff
path: root/fs/nilfs2
diff options
context:
space:
mode:
authorSam Lang <sam.lang@inktank.com>2013-04-10 01:49:11 +0400
committerSage Weil <sage@inktank.com>2013-05-02 08:18:49 +0400
commita84cd29335f4ca38ca8405c1636ee3876bb292b5 (patch)
tree953fdc6edc1ae9374f59a25c8892d2ce0d662058 /fs/nilfs2
parent8b3e1a56982d0eafff0afb0ff9e87c8b944a9bdc (diff)
downloadlinux-a84cd29335f4ca38ca8405c1636ee3876bb292b5.tar.xz
ceph: Use pseudo-random numbers to choose mds
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/3579 Signed-off-by: Sam Lang <sam.lang@inktank.com> Reviewed-by: Greg Farnum <greg@inktank.com> Reviewed-by: Alex Elder <elder@inktank.com>
Diffstat (limited to 'fs/nilfs2')
0 files changed, 0 insertions, 0 deletions