summary refs log tree commit diff
path: root/fs/dcookies.c
diff options
context:
space:
mode:
authorAlex Elder <elder@inktank.com>2013-04-27 09:59:31 -0500
committerSage Weil <sage@inktank.com>2013-05-01 21:20:01 -0700
commitb644de2ba0c5b590db9195c03358ccd0f061daa6 (patch)
tree85bfa5ab49b5a3617b04d8c4c3dab1750550f3dd /fs/dcookies.c
parent96f03e08f9f27cf72d2c24b4e75ade81d2df3c75 (diff)
downloadlinux-b644de2ba0c5b590db9195c03358ccd0f061daa6.tar.gz
rbd: set up watch in rbd_dev_image_probe()
Move setting up the watch request for an image so it's done in
rbd_dev_image_probe() rather than rbd_dev_probe_finish().  Move
it all the way up to before doing the initial probe.  This avoids
a potential race condition, in which we get (and use) the initial
snapshot context for an image, and it gets changed between that
time and the time we get the watch set up.

This resolves:
    http://tracker.ceph.com/issues/3871

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Diffstat (limited to 'fs/dcookies.c')
0 files changed, 0 insertions, 0 deletions