Skip to content

Commit

Permalink
sdev: ipc performance improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
jewelcodes committed Nov 30, 2024
1 parent 0121e75 commit a1cee7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions devices/sdev/sdev/src/io.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ void relayRead(SDevRWCommand *res) {

memcpy(rcmd->data, res->buffer, res->count);

luxSendDependency(rcmd);
luxSendKernel(rcmd);
free(rcmd);
} else {
// I/O error, simply pass on the error code
Expand All @@ -116,6 +116,6 @@ void relayRead(SDevRWCommand *res) {
rcmd.position = res->start;
rcmd.length = 0;

luxSendDependency(&rcmd);
luxSendKernel(&rcmd);
}
}

0 comments on commit a1cee7a

Please sign in to comment.