rbd: protect read of snapshot sequence number
authorJosh Durgin <josh.durgin@dreamhost.com>
Mon, 5 Dec 2011 18:47:13 +0000 (10:47 -0800)
committerAlex Elder <elder@dreamhost.com>
Mon, 14 May 2012 17:12:46 +0000 (12:12 -0500)
commit403f24d3d51760a8b9368d595fa5f48c309f1a0f
tree672324db44b12186b91235f293b971bb00cf377d
parent50f7c4c967d0b5acd8e7ba6ab654dc4a7ac869ac
rbd: protect read of snapshot sequence number

This is updated whenever a snapshot is added or deleted, and the
snapc pointer is changed with every refresh of the header.

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
Reviewed-by: Alex Elder <elder@dreamhost.com>
Reviewed-by: Yehuda Sadeh <yehuda@hq.newdream.net>
drivers/block/rbd.c