Skip to content
Commit b0d9111a authored by Josef Bacik's avatar Josef Bacik Committed by Jens Axboe
Browse files

nbd: use an idr to keep track of nbd devices



To prepare for dynamically adding new nbd devices to the system switch
from using an array for the nbd devices and instead use an idr.  This
copies what loop does for keeping track of its devices.

Signed-off-by: default avatarJosef Bacik <jbacik@fb.com>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent 124d6db0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment