From: Alex Elder Date: Sun, 29 Jan 2012 19:57:44 +0000 (-0600) Subject: rbd: protect the rbd_dev_list with a spinlock X-Git-Tag: v3.4-rc1~76^2~39 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e124a82f3c4efc2cc2bae68a2bf30020fb8c4fc2;p=pandora-kernel.git rbd: protect the rbd_dev_list with a spinlock The rbd_dev_list is just a simple list of all the current rbd_devices. Using the ctl_mutex as a concurrency guard is overkill. Instead, use a spinlock for that specific purpose. This also reduces the window that the ctl_mutex needs to be held in rbd_add(). Signed-off-by: Alex Elder Signed-off-by: Sage Weil --- Reading git-diff-tree failed