diff options
| author | Alex Elder <elder@dreamhost.com> | 2012-01-29 13:57:44 -0600 |
|---|---|---|
| committer | Alex Elder <elder@dreamhost.com> | 2012-03-22 10:47:47 -0500 |
| commit | e124a82f3c4efc2cc2bae68a2bf30020fb8c4fc2 (patch) | |
| tree | 9c1b768d2871b181bcc21d89bedf9bf9dbc6d998 /lib/mpi/mpi-bit.c | |
| parent | 1ddbe94eda58597cb6dd464b455cb62d3f68be7b (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 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions
