summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-postgresql.py
diff options
context:
space:
mode:
authorIlya Dryomov <idryomov@gmail.com>2016-09-15 18:56:39 +0300
committerIlya Dryomov <idryomov@gmail.com>2016-10-03 17:13:49 +0300
commit7c84883adf6dc614fc9e01304aa1813a55c43ad2 (patch)
tree182db0abb76f1588ba12b99e7c3ec320b50c9b47 /tools/perf/scripts/python/call-graph-from-postgresql.py
parent710214e391476f331abed1b774b5f025d054ab7f (diff)
downloadlinux-7c84883adf6dc614fc9e01304aa1813a55c43ad2.tar.xz
rbd: don't call rbd_osd_req_format_read() for !img_data requests
Accessing obj_request->img_request union field is only valid for object requests associated with an image (i.e. if obj_request_img_data_test() returns true). rbd_osd_req_format_read() used to do more, but now it just sets osd_req->snap_id. Standalone and stat object requests always go to the HEAD revision and are fine with CEPH_NOSNAP set by libceph, so get around the invalid union field use by simply not calling rbd_osd_req_format_read() in those places. Reported-by: David Disseldorp <ddiss@suse.de> Signed-off-by: Ilya Dryomov <idryomov@gmail.com> Reviewed-by: Alex Elder <elder@linaro.org> Reviewed-by: David Disseldorp <ddiss@suse.de>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions