From: Alex Elder Date: Fri, 9 Nov 2012 14:43:15 +0000 (-0600) Subject: rbd: only get snap context for write requests X-Git-Tag: v3.9-rc1~41^2~21^2~59^2~36 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7b4c65f4f15aa657b09d13da8f45ba0b72ec0df;p=pandora-kernel.git rbd: only get snap context for write requests Right now we get the snapshot context for an rbd image (under protection of the header semaphore) for every request processed. There's no need to get the snap context if we're doing a read, so avoid doing so in that case. Note that we no longer need to hold the header semaphore to check the rbd_dev's existence flag. Signed-off-by: Alex Elder Reviewed-by: Josh Durgin --- Reading git-diff-tree failed