aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorAlex Elder <[email protected]>2012-02-07 12:03:36 -0600
committerAlex Elder <[email protected]>2012-03-22 10:47:50 -0500
commitfed4c143ba8f08c8bddfdc7c69738e691a06d565 (patch)
tree2c4e649eaa7ea7a73fa29d603c019d7df7fa287a /tools/perf/util/scripting-engines/trace-event-python.c
parent7ef3214af220515b8fe223ec92ec017d2e5607a7 (diff)
rbd: fix module sysfs setup/teardown code
Once rbd_bus_type is registered, it allows an "add" operation via the /sys/bus/rbd/add bus attribute, and adding a new rbd device that way establishes a connection between the device and rbd_root_dev. But rbd_root_dev is not registered until after the rbd_bus_type registration is complete. This could (in principle anyway) result in an invalid state. Since rbd_root_dev has no tie to rbd_bus_type we can reorder these two initializations and never be faced with this scenario. In addition, unregister the device in the event the bus registration fails at module init time. Signed-off-by: Alex Elder <[email protected]> Signed-off-by: Sage Weil <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions