commit | 499afd5b8e742792fda6bd7730c738ad83aecf6b | [log] [tgz] |
---|---|---|
author | Alex Elder <elder@dreamhost.com> | Thu Feb 02 08:13:29 2012 -0600 |
committer | Alex Elder <elder@dreamhost.com> | Thu Mar 22 10:47:47 2012 -0500 |
tree | a3cac0fa73a3251e80d8c6eb2e0eb9addbcc5e22 | |
parent | e124a82f3c4efc2cc2bae68a2bf30020fb8c4fc2 [diff] |
rbd: tie rbd_dev_list changes to rbd_id operations The only time entries are added to or removed from the global rbd_dev_list is exactly when a "put" or "get" operation is being performed on a rbd_dev's id. So just move the list management code into get/put routines. Signed-off-by: Alex Elder <elder@dreamhost.com> Signed-off-by: Sage Weil <sage@newdream.net>