commit | a7b4c65f4f15aa657b09d13da8f45ba0b72ec0df | [log] [tgz] |
---|---|---|
author | Alex Elder <elder@inktank.com> | Fri Nov 09 08:43:15 2012 -0600 |
committer | Alex Elder <elder@inktank.com> | Thu Jan 17 15:52:00 2013 -0600 |
tree | b97da31aa196d5cad28ef5ae0f9e25bcc9d5e735 | |
parent | d78b650a595e23e5a115d332e3c37e019baf7703 [diff] |
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 <elder@inktank.com> Reviewed-by: Josh Durgin <josh.durgin@inktank.com>