rbd: return obj version in __rbd_refresh_header()
authorAlex Elder <elder@inktank.com>
Wed, 25 Jul 2012 14:32:41 +0000 (09:32 -0500)
committerSage Weil <sage@inktank.com>
Tue, 31 Jul 2012 01:21:46 +0000 (18:21 -0700)
commitb813623ab95d0b4bbeb22e160bd5461965d0c571
treea40f3cc64c62b7ab643167a72c2789b7561b06b8
parentccece235d3737221e7a1118fdbd8474112adac84
rbd: return obj version in __rbd_refresh_header()

Add a new parameter to __rbd_refresh_header() through which the
version of the header object is passed back to the caller.  In most
cases this isn't needed.  The main motivation is to normalize
(almost) all calls to __rbd_refresh_header() so they are all
wrapped immediately by mutex_lock()/mutex_unlock().

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