aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorAlex Elder <[email protected]>2012-01-29 13:57:44 -0600
committerAlex Elder <[email protected]>2012-03-22 10:47:47 -0500
commite124a82f3c4efc2cc2bae68a2bf30020fb8c4fc2 (patch)
tree9c1b768d2871b181bcc21d89bedf9bf9dbc6d998 /lib/memory-notifier-error-inject.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 <[email protected]> Signed-off-by: Sage Weil <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions