-
Notifications
You must be signed in to change notification settings - Fork 148
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 tcmulib get next command on aarch64 #693
Fix tcmulib get next command on aarch64 #693
Conversation
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.
This LGTM.
Could you add the comments in the commit and add the singed-off-by at the same time ?
Thanks
@lxbsz thanks. I don't quite follow what you mean when you say:
|
Please see the following commit's format:
|
a022d7b
to
c949cce
Compare
Use the appropriate atomic load instruction to ensure we synchronize the read of the command ring head index with any previous stores. Not doing this causes command ring corruption on aarch64: [Tue Oct 4 15:45:50 2022] cmd_id 0 not found, ring is broken [Tue Oct 4 15:45:50 2022] ring broken, not handling completions See issue open-iscsi#688. PR open-iscsi#693. Signed-off-by: Xiubo Li <[email protected]>
c949cce
to
2e5e831
Compare
I've done that now @lxbsz. Thanks |
NO, this is incorrect. It should be something likes:
|
Use the appropriate atomic load instruction to ensure we synchronize the read of the command ring head index with any previous stores. Not doing this causes command ring corruption on aarch64: [Tue Oct 4 15:45:50 2022] cmd_id 0 not found, ring is broken [Tue Oct 4 15:45:50 2022] ring broken, not handling completions Signed-off-by: Alex Reid <[email protected]>
2e5e831
to
b3afc3a
Compare
Done! Turns |
Please see See #688 for the problem, repro and rationale behind the fix.