From: Alex Elder Date: Fri, 9 Nov 2012 14:43:15 +0000 (-0600) Subject: rbd: make exists flag atomic X-Git-Tag: v3.9-rc1~41^2~21^2~59^2~37 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d78b650a595e23e5a115d332e3c37e019baf7703;p=pandora-kernel.git rbd: make exists flag atomic The rbd_device->exists field can be updated asynchronously, changing from set to clear if a mapped snapshot disappears from the base image's snapshot context. Currently, value of the "exists" flag is only read and modified under protection of the header semaphore, but that will change with the next patch. Making it atomic ensures this won't be a problem because the a the non-existence of device will be immediately known. Signed-off-by: Alex Elder Reviewed-by: Josh Durgin --- Reading git-diff-tree failed