summaryrefslogtreecommitdiff
path: root/drivers/block/paride
diff options
context:
space:
mode:
authorJosh Durgin <josh.durgin@dreamhost.com>2011-12-06 02:03:05 +0400
committerSage Weil <sage@inktank.com>2012-07-31 05:15:40 +0400
commitd1d25646543134d756a02ffe4e02073faa761f2c (patch)
treec68bf9aae4a362dd17f441f005bbdc7ca23fafb9 /drivers/block/paride
parent93a24e084d67ba2fcb9a4c289135825b623ec864 (diff)
downloadlinux-d1d25646543134d756a02ffe4e02073faa761f2c.tar.xz
rbd: use reference counting for the snap context
This prevents a race between requests with a given snap context and header updates that free it. The osd client was already expecting the snap context to be reference counted, since it get()s it in ceph_osdc_build_request and put()s it when the request completes. Also remove the second down_read()/up_read() on header_rwsem in rbd_do_request, which wasn't actually preventing this race or protecting any other data. Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com> Reviewed-by: Alex Elder <elder@inktank.com>
Diffstat (limited to 'drivers/block/paride')
0 files changed, 0 insertions, 0 deletions