From: Alex Elder Date: Thu, 2 Feb 2012 14:13:29 +0000 (-0600) Subject: rbd: tie rbd_dev_list changes to rbd_id operations X-Git-Tag: v3.4-rc1~76^2~38 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=499afd5b8e742792fda6bd7730c738ad83aecf6b;p=pandora-kernel.git 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 Signed-off-by: Sage Weil --- Reading git-diff-tree failed