use of com.ibm.disni.nvmef.spdk.IOCompletion in project incubator-crail by apache.
the class NvmfStorageEndpoint method poll.
void poll() throws IOException {
long[] ca = completed.get();
int numberCompletions = endpoint.processCompletions(ca);
for (int i = 0; i < numberCompletions; i++) {
int idx = (int) ca[i];
NvmeCommand command = commands[idx];
IOCompletion completion = command.getCompletion();
completion.done();
futures[idx].signal(completion.getStatusCodeType(), completion.getStatusCode());
freeCommands.add(command);
}
}
Aggregations