diff options
author | 2012-01-29 13:57:44 -0600 | |
---|---|---|
committer | 2012-03-22 10:47:47 -0500 | |
commit | d184f6bfde1428ad4a690d49b28afc9ab4d57b35 (patch) | |
tree | fd3156df944edc90146143e5cea416d34c8fcd47 /lib/dma-debug.c | |
parent | rbd: tie rbd_dev_list changes to rbd_id operations (diff) | |
download | linux-rng-d184f6bfde1428ad4a690d49b28afc9ab4d57b35.tar.xz linux-rng-d184f6bfde1428ad4a690d49b28afc9ab4d57b35.zip |
rbd: restore previous rbd id sequence behavior
It used to be that selecting a new unique identifier for an added
rbd device required searching all existing ones to find the highest
id is used. A recent change made that unnecessary, but made it
so that id's used were monotonically non-decreasing. It's a bit
more pleasant to have smaller rbd id's though, and this change
makes ids get allocated as they were before--each new id is one more
than the maximum currently in use.
Signed-off-by: Alex Elder <elder@dreamhost.com>
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'lib/dma-debug.c')
0 files changed, 0 insertions, 0 deletions