-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix lockdep warning on insmod #8884
Conversation
sysfs_attr_init() is required to make lockdep happy for dynamically allocated sysfs attributes. This fixed openzfs#8868 on Fedora 29 running kernel-debug. This requirement was introduced in 2.6.34. See include/linux/sysfs.h for what it actually does. Signed-off-by: Tomohiro Kusumi <kusumi.tomohiro@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #8884 +/- ##
==========================================
+ Coverage 78.65% 78.73% +0.07%
==========================================
Files 382 382
Lines 117791 117791
==========================================
+ Hits 92652 92737 +85
+ Misses 25139 25054 -85
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
sysfs_attr_init() is required to make lockdep happy for dynamically allocated sysfs attributes. This fixed openzfs#8868 on Fedora 29 running kernel-debug. This requirement was introduced in 2.6.34. See include/linux/sysfs.h for what it actually does. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Olaf Faaland <faaland1@llnl.gov> Signed-off-by: Tomohiro Kusumi <kusumi.tomohiro@gmail.com> Closes openzfs#8868 Closes openzfs#8884
sysfs_attr_init() is required to make lockdep happy for dynamically allocated sysfs attributes. This fixed openzfs#8868 on Fedora 29 running kernel-debug. This requirement was introduced in 2.6.34. See include/linux/sysfs.h for what it actually does. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Olaf Faaland <faaland1@llnl.gov> Signed-off-by: Tomohiro Kusumi <kusumi.tomohiro@gmail.com> Closes openzfs#8868 Closes openzfs#8884
sysfs_attr_init() is required to make lockdep happy for dynamically allocated sysfs attributes. This fixed openzfs#8868 on Fedora 29 running kernel-debug. This requirement was introduced in 2.6.34. See include/linux/sysfs.h for what it actually does. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Olaf Faaland <faaland1@llnl.gov> Signed-off-by: Tomohiro Kusumi <kusumi.tomohiro@gmail.com> Closes openzfs#8868 Closes openzfs#8884
sysfs_attr_init() is required to make lockdep happy for dynamically allocated sysfs attributes. This fixed openzfs#8868 on Fedora 29 running kernel-debug. This requirement was introduced in 2.6.34. See include/linux/sysfs.h for what it actually does. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Olaf Faaland <faaland1@llnl.gov> Signed-off-by: Tomohiro Kusumi <kusumi.tomohiro@gmail.com> Closes openzfs#8868 Closes openzfs#8884
sysfs_attr_init() is required to make lockdep happy for dynamically allocated sysfs attributes. This fixed openzfs#8868 on Fedora 29 running kernel-debug. This requirement was introduced in 2.6.34. See include/linux/sysfs.h for what it actually does. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Olaf Faaland <faaland1@llnl.gov> Signed-off-by: Tomohiro Kusumi <kusumi.tomohiro@gmail.com> Closes openzfs#8868 Closes openzfs#8884
sysfs_attr_init() is required to make lockdep happy for dynamically allocated sysfs attributes. This fixed #8868 on Fedora 29 running kernel-debug. This requirement was introduced in 2.6.34. See include/linux/sysfs.h for what it actually does. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Olaf Faaland <faaland1@llnl.gov> Signed-off-by: Tomohiro Kusumi <kusumi.tomohiro@gmail.com> Closes #8868 Closes #8884
Motivation and Context
#8868
Description
sysfs_attr_init() is required to make lockdep happy for dynamically
allocated sysfs attributes. This fixed #8868 on Fedora 29 running
kernel-debug.
torvalds/linux@918b8ac55b is an example of commit which fixed this.
See include/linux/sysfs.h for what it actually does.
This requirement was introduced in v2.6.34.
How Has This Been Tested?
By running it on lockdep'd kernel.
Types of changes
Checklist:
Signed-off-by
.