-
Notifications
You must be signed in to change notification settings - Fork 1.9k
zvol: Fix blk-mq sync #17765
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
zvol: Fix blk-mq sync #17765
Conversation
d23c5b1
to
c7a7b88
Compare
c7a7b88
to
98c8c78
Compare
I believe this is ready to go. Reviewers - please take a look when you get a chance. |
Considering |
The zvol blk-mq codepaths would erroneously send FLUSH and TRIM commands down the read codepath, rather than write. This fixes the issue, and updates the zvol_misc_fua test to verify that sync writes are actually happening. Fixes: openzfs#17761 Signed-off-by: Tony Hutter <[email protected]>
98c8c78
to
3995357
Compare
@amotin my latest push inlines |
@tonyhutter You sure inlined it, but haven't synchronized with the surrounding code as I asked. |
The zvol blk-mq codepaths would erroneously send FLUSH and TRIM commands down the read codepath, rather than write. This fixes the issue, and updates the zvol_misc_fua test to verify that sync writes are actually happening. Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Alexander Motin <[email protected]> Reviewed-by: Ameer Hamza <[email protected]> Signed-off-by: Tony Hutter <[email protected]> Closes openzfs#17761 Closes openzfs#17765
@amotin sorry I jumped the gun. I think you've inadvertently raised another issue - I'm not 100% convinced we are advertising that our zvols can do secure erase. I'm not seeing us set |
@tonyhutter You might be right about |
Yea, the kernel macros are somewhat scattershot in what they check for. There's an |
Here's the follow-up with the secure erase updates: #17803 |
Motivation and Context
Fixes: #17761
Description
The zvol blk-mq codepaths would erroneously send FLUSH and TRIM commands down the read codepath, rather than write. This fixes the issue, and updates the
zvol_misc_fua
test to verify that sync writes are actually happening.How Has This Been Tested?
Updated test case. Ran test case on
master
and saw it fail to send enough sync writes to thelog
device with blk-mq. Re-ran with this PR and saw it send the expected number of sync writes to log with blk-mq.Types of changes
Checklist:
Signed-off-by
.