summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_sysfs.c
diff options
context:
space:
mode:
authorAlex Elder <elder@dreamhost.com>2012-01-29 13:57:44 -0600
committerAlex Elder <elder@dreamhost.com>2012-03-22 10:47:47 -0500
commite124a82f3c4efc2cc2bae68a2bf30020fb8c4fc2 (patch)
tree9c1b768d2871b181bcc21d89bedf9bf9dbc6d998 /drivers/gpu/drm/drm_sysfs.c
parent1ddbe94eda58597cb6dd464b455cb62d3f68be7b (diff)
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 <elder@dreamhost.com> Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'drivers/gpu/drm/drm_sysfs.c')
0 files changed, 0 insertions, 0 deletions