Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The virtqueue_add_buf() routine will return 0 on SUCCESS or otherwise a negative number, usually -28 (ENOSPC), i.e no space for buffer. An inline comment is added for edification. Here we refactor virtqueue_add_buf() handling to only process the SRB if virtqueue_add_buf() returns SUCCESS. Presently, other positive return codes would be processed. Here we define VQ_ADD_BUFFER_SUCCESS in vioscsi\helper.h To ensure valid data is reported we also move the trace event on failure to above the call to CompleteRequest() and wrap the line for improved readability. Signed-off-by: benyamin-codez <[email protected]>
- Loading branch information