diff options
author | Alex Elder <elder@inktank.com> | 2012-11-09 08:43:15 -0600 |
---|---|---|
committer | Alex Elder <elder@inktank.com> | 2013-01-17 15:52:00 -0600 |
commit | a7b4c65f4f15aa657b09d13da8f45ba0b72ec0df (patch) | |
tree | b97da31aa196d5cad28ef5ae0f9e25bcc9d5e735 /include/linux/mlx4/cmd.h | |
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>
Diffstat (limited to 'include/linux/mlx4/cmd.h')
0 files changed, 0 insertions, 0 deletions