]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: always initialize perf counters 4406/head
authorJosh Durgin <jdurgin@redhat.com>
Mon, 20 Apr 2015 18:32:13 +0000 (11:32 -0700)
committerJosh Durgin <jdurgin@redhat.com>
Mon, 20 Apr 2015 18:34:31 +0000 (11:34 -0700)
commit66edf625b4b20890a372e4590e34e11db1b94059
treefa73011a59a0471133950f4e7122c1b9e74bbc19
parentc1de23ff45aa3d40d55706bba4a8221d9f3b189d
librbd: always initialize perf counters

If ImageCtx::init() fails, perf counters are still used when closing
the image. To prevent uninitialized use, it's easiest to always
initialize them before anything that can fail in ImageCtx::init().

This was moved in 6055df398557e4dbcabc66f463a0a126f9b5dc74, but it's
not necessary to delay perf counter initialization for any extra
configuration.

Fixes: #11433
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
src/librbd/ImageCtx.cc