rbd: move locking out of rbd_header_set_snap()
authorAlex Elder <elder@inktank.com>
Fri, 24 Aug 2012 04:48:49 +0000 (23:48 -0500)
committerAlex Elder <elder@inktank.com>
Mon, 1 Oct 2012 19:30:51 +0000 (14:30 -0500)
commit4bb1f1ed0063870f34ae5783cda08924964bac0b
treed4e2ce70d02b0bffb08a31da4f55e08237c16f99
parent1fcdb8aa1f58af72eb8206ba97fab2df77df2b14
rbd: move locking out of rbd_header_set_snap()

Move the calls to get the header semaphore out of
rbd_header_set_snap() and into its caller.

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
drivers/block/rbd.c