rbd: create rbd_refresh_helper()
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)
commit1fe5e9932156f6122c3b1ff6ba7541c27c86718c
treec5218897ce6cfbc3e2d5686772eb2bdabf415c89
parentb813623ab95d0b4bbeb22e160bd5461965d0c571
rbd: create rbd_refresh_helper()

Create a simple helper that handles the common case of calling
__rbd_refresh_header() while holding the ctl_mutex.

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