-
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
FreeBSD: Simplify zvol and fix locking #10381
Conversation
Codecov Report
@@ Coverage Diff @@
## master #10381 +/- ##
===========================================
- Coverage 79.38% 66.00% -13.39%
===========================================
Files 391 308 -83
Lines 123590 106289 -17301
===========================================
- Hits 98112 70151 -27961
- Misses 25478 36138 +10660
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #10381 +/- ##
===========================================
- Coverage 79.38% 66.02% -13.37%
===========================================
Files 391 308 -83
Lines 123590 106289 -17301
===========================================
- Hits 98112 70176 -27936
- Misses 25478 36113 +10635
Continue to review full report at Codecov.
|
@mattmacy can you give this some eyeballs |
Seems fine. |
zvol_geom_bio_strategy should handle its own use of the zvol suspend reader lock and ensure the zilog exists when needed. A few other places using the zvol zilog should use the suspend reader lock as well. Simplify consumers of zvol_geom_bio_strategy, fix the locking, and while in here, use the boolean_t constants with doread. Signed-off-by: Ryan Moeller <ryan@iXsystems.com>
|
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.
Looks good to me.
zvol_geom_bio_strategy should handle its own use of the zvol suspend reader lock and ensure the zilog exists when needed. A few other places using the zvol zilog should use the suspend reader lock as well. Simplify consumers of zvol_geom_bio_strategy, fix the locking, and while in here, use the boolean_t constants with doread. Reviewed-by: Matt Macy <mmacy@FreeBSD.org> Reviewed-by: Alexander Motin <mav@FreeBSD.org> Signed-off-by: Ryan Moeller <ryan@iXsystems.com> Closes openzfs#10381
Motivation and Context
zvol_geom_bio_strategy should handle its own use of the zvol
suspend reader lock and ensure the zilog exists when needed.
A few other places using the zvol zilog should use the suspend
reader lock as well.
Description
Simplify consumers of zvol_geom_bio_strategy, fix the locking, and
while in here, use the boolean_t constants with doread.
How Has This Been Tested?
ZTS on FreeBSD:
Types of changes
Checklist:
Signed-off-by
.