diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2021-05-29 18:33:28 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2021-05-29 18:33:28 +0200 |
commit | e1a9e3db3bb59c2fa0c0de0b3381c64b3b6ffba7 (patch) | |
tree | ccb7cab00ab983b242c7c4c52aa0a8507929a7b4 /include | |
parent | Merge tag 'staging-5.13-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git... (diff) | |
parent | drivers: base: Reduce device link removal code duplication (diff) | |
download | linux-e1a9e3db3bb59c2fa0c0de0b3381c64b3b6ffba7.tar.xz linux-e1a9e3db3bb59c2fa0c0de0b3381c64b3b6ffba7.zip |
Merge tag 'driver-core-5.13-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core
Pull driver core fixes from Greg KH:
"Here are three small driver core / debugfs fixes for 5.13-rc4:
- debugfs fix for incorrect "lockdown" mode for selinux accesses
- two device link changes, one bugfix and one cleanup
All of these have been in linux-next for over a week with no reported
problems"
* tag 'driver-core-5.13-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core:
drivers: base: Reduce device link removal code duplication
drivers: base: Fix device link removal
debugfs: fix security_locked_down() call for SELinux
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/device.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/linux/device.h b/include/linux/device.h index 38a2071cf776..f1a00040fa53 100644 --- a/include/linux/device.h +++ b/include/linux/device.h @@ -570,7 +570,7 @@ struct device { * @flags: Link flags. * @rpm_active: Whether or not the consumer device is runtime-PM-active. * @kref: Count repeated addition of the same link. - * @rcu_head: An RCU head to use for deferred execution of SRCU callbacks. + * @rm_work: Work structure used for removing the link. * @supplier_preactivated: Supplier has been made active before consumer probe. */ struct device_link { @@ -583,9 +583,7 @@ struct device_link { u32 flags; refcount_t rpm_active; struct kref kref; -#ifdef CONFIG_SRCU - struct rcu_head rcu_head; -#endif + struct work_struct rm_work; bool supplier_preactivated; /* Owned by consumer probe. */ }; |