diff options
author | 2013-04-26 15:44:36 -0500 | |
---|---|---|
committer | 2013-05-01 21:19:54 -0700 | |
commit | ad945fc1da42965a31089d29de3754047861f348 (patch) | |
tree | 359b8c20a5f7fb4adc8516d803b59b614fe7a9a6 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | rbd: kill __rbd_remove() (diff) | |
download | linux-dev-ad945fc1da42965a31089d29de3754047861f348.tar.xz linux-dev-ad945fc1da42965a31089d29de3754047861f348.zip |
rbd: fix rbd_dev_remove_parent()
In certain error paths, it is possible for an rbd device to have a
parent spec but no parent rbd_dev. In rbd_dev_remove_parent() use
the parent field rather than parent_spec in determining whether to
try to remove any parent devices. Use assertions to indicate that
any non-null parent pointer has parent_spec associated with it.
Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions