aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorSaravana Kannan <[email protected]>2021-09-29 12:05:49 -0700
committerGreg Kroah-Hartman <[email protected]>2021-10-05 17:45:54 +0200
commitf729a592adb6760013c3e48622a5bf256b992452 (patch)
treeec028f371a25d826588a359405f68957e510db19 /scripts/gdb/linux/utils.py
parent410d591a19543f1347bc2b4b4ec3399cb548ba47 (diff)
driver core: Reject pointless SYNC_STATE_ONLY device links
SYNC_STATE_ONLY device links intentionally allow cycles because cyclic sync_state() dependencies are valid and necessary. However a SYNC_STATE_ONLY device link where the consumer and the supplier are the same device is pointless because the device link would be deleted as soon as the device probes (because it's also the consumer) and won't affect when the sync_state() callback is called. It's a waste of CPU cycles and memory to create this device link. So reject any attempts to create such a device link. Fixes: 05ef983e0d65 ("driver core: Add device link support for SYNC_STATE_ONLY flag") Cc: stable <[email protected]> Reported-by: Ulf Hansson <[email protected]> Reviewed-by: Rafael J. Wysocki <[email protected]> Reviewed-by: Ulf Hansson <[email protected]> Signed-off-by: Saravana Kannan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions