]> git.baikalelectronics.ru Git - kernel.git/commit
rbd: don't retry setting up header watch
authorAlex Elder <elder@inktank.com>
Fri, 18 Jan 2013 18:31:09 +0000 (12:31 -0600)
committerAlex Elder <elder@inktank.com>
Fri, 25 Jan 2013 23:33:37 +0000 (17:33 -0600)
commit88845d96b4779ad46b6739ede497e0d0747da8e0
tree2d5bbe316ab638fb2ca983b981bd15e2776e987f
parent6323fce283d4dc92bd662f22ec66cb91117deb6e
rbd: don't retry setting up header watch

When an rbd image is initially mapped a watch event is registered so
we can do something if the header object changes.

The code that does this currently loops if initiating the watch
request results in an ERANGE error.  The osds will never return
ERANGE, so there's no reason to do this loop, so get rid of it.

This resolves:
    http://tracker.newdream.net/issues/3860

Note that the problem this loop was intended to solve is a race
between collecting image header information and setting up the watch
on the header object.  The real fix for that problem is described
here:
    http://tracker.newdream.net/issues/3871

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
drivers/block/rbd.c