-
Notifications
You must be signed in to change notification settings - Fork 392
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
RHEL-70446: [viostor] Fix returning SUCCESS when really -ENOSPC (regression) #1281
Conversation
1. Refactored to only return TRUE when add_buffer_req_status == VQ_ADD_BUFFER_SUCCESS. 2. Pro-actively refactors calls to InterlockedIncrement() back to the add_buffer_req_status == VQ_ADD_BUFFER_SUCCESS path. Impacts: RhelDoFlush(), RhelDoReadWrite(), RhelDoUnMap() and RhelGetSerialNumber(). Regression introduced with PR virtio-win#1174 (379f291). Will likely resolve issue virtio-win#1204 (RHEL-70446), unlikely to resolve issue virtio-win#907. My bad... 8^d Signed-off-by: benyamin-codez <[email protected]>
Backports fixes and improvements from vioscsi PRs #1150 and #1162 virtqueue struct vq was also removed in favour of adaptExt->vq[QueueNumber], which results in a minor performance increase. Signed-off-by: benyamin-codez <[email protected]>
Added RHEL-70446 to PR title for tracking on Jira side as this PR can be related |
Thanks @kostyanf14. Just wondering if we should update 6. If you are a Red Hat contributor, you must include [Jira](https://issues.redhat.com/) key in the commit message
7. Prefix commit messages with the Jira key first, and then the affected component. For example: "RHELMISC-8923: NetKVM: implementing dynamic NDIS version support". ... to include the the Jira key even if you aren't a Red Hat contributor, but know of the issue, e.g.: 6. If you are a Red Hat contributor, you MUST include the [Jira](https://issues.redhat.com/) key in the commit message
7. If you are a NOT a Red Hat contributor, but know of a relevant Jira key, please prefix commit messages with the Jira key first, and then the affected component. For example: "RHELMISC-8923: [NetKVM] implementing dynamic NDIS version support". Let me know. I'm happy to raise a suitable PR if a change is warranted. 8^d Best regards, |
|
Sound like a good idea |
May I present PR #1288. 8^d |
@YanVugenfirer |
@YanVugenfirer & @kostyanf14, just to be clear, this is an issue with the HCK and not the driver, yes? In my previous investigation of the logs of similar failures, the problem seemed to be mostly 0x80070002 errors A disk stuck in OFFLINE mode could be due to inadequate BTL reset handling. More commentary in this dropdown.I note my comments re CompletePendingRequests(DeviceExtension);
....
CompleteRequestWithStatus(DeviceExtension, (PSRB_TYPE)currSrb, SRB_STATUS_BUS_RESET);
....
CompleteRequestWithStatus(DeviceExtension, (PSRB_TYPE)Srb, SRB_STATUS_SUCCESS); It seems CompletePendingRequestsOnReset(DeviceExtension);
....
CompleteRequest(DeviceExtension, (PSRB_TYPE)currSrb); Backporting from It's perhaps also worth pointing out that:
|
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 as it passed https://issues.redhat.com/browse/RHEL-78185
Refactored to only return
TRUE
whenadd_buffer_req_status == VQ_ADD_BUFFER_SUCCESS
.Pro-actively refactors calls to
InterlockedIncrement()
back to theadd_buffer_req_status == VQ_ADD_BUFFER_SUCCESS
path.Impacts:
RhelDoFlush()
,RhelDoReadWrite()
,RhelDoUnMap()
andRhelGetSerialNumber()
.Regression introduced with PR #1174 (379f291).
Will likely resolve issue #1204 (RHEL-70446)
Unlikely to resolve issue #907.
My bad... 8^d