diff options
author | 2013-05-31 17:40:45 -0500 | |
---|---|---|
committer | 2013-07-03 15:32:43 -0700 | |
commit | cfbf6377b696d88461eef6966bef9e6184111183 (patch) | |
tree | 6da8c0cfcd4aeb02a738a6c552f9a5f429139164 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | rbd: don't hold ctl_mutex to get/put device (diff) | |
download | linux-dev-cfbf6377b696d88461eef6966bef9e6184111183.tar.xz linux-dev-cfbf6377b696d88461eef6966bef9e6184111183.zip |
rbd: use rwsem to protect header updates
Updating an image header needs to be protected to ensure it's
done consistently. However distinct headers can be updated
concurrently without a problem. Instead of using the global
control lock to serialize headder updates, just rely on the header
semaphore. (It's already used, this just moves it out to cover
a broader section of the code.)
That leaves the control mutex protecting only the creation of rbd
clients, so rename it.
This resolves:
http://tracker.ceph.com/issues/5222
Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions