aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorHannes Reinecke <[email protected]>2016-03-03 07:54:12 +0100
committerMartin K. Petersen <[email protected]>2016-03-05 17:21:41 -0500
commit4cd2459c066d2970241284b1fcdc5dca7ce6fbb2 (patch)
treecea135d657fbf68f0f4ba353489865cac73a1a64 /tools/perf/scripts/python/export-to-postgresql.py
parent0323375c8bc5c101c9284856cac19a0b9ece71d4 (diff)
scsi_sysfs: call 'device_add' after attaching device handler
'device_add' will be evaluating the 'is_visible' callback when creating the sysfs attributes. As by this time the device handler has not been attached the 'access_state' attribute will never be visible. This patch moves the code around so that the device handler is present by the time 'is_visible' is evaluated to correctly display the 'access_state' attribute. Signed-off-by: Hannes Reinecke <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Johannes Thumshirn <[email protected]> Reviewed-by: Bart van Assche <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions