aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorPhilipp Reisner <[email protected]>2017-08-29 10:20:37 +0200
committerJens Axboe <[email protected]>2017-08-29 15:34:44 -0600
commitc200d9868707150abd37853cb341b54f75461208 (patch)
tree08fcce972dc6e09d81e63e6cd417d48318489f2c /tools/perf/scripts/python/export-to-sqlite.py
parent1ffa7bfab40a4f3b47ee9ddd95fdef0f7f6744b8 (diff)
drbd: Fix resource role for newly created resources in events2
The conn_higest_role() (a terribly misnamed function) returns the role of the resource. It returned R_UNKNOWN as long as the resource has not a single device. Resources without devices are short living objects. But it matters for the NOTIFY_CREATE netwlink message. It makes a lot more sense to report R_SECONDARY for the newly created resource than R_UNKNOWN. I reviewd all call sites of conn_highest_role(), that change does not matter for the other call sites. Signed-off-by: Philipp Reisner <[email protected]> Signed-off-by: Lars Ellenberg <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions