Search in sources :

Example 1 with IOCompletion

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);
    }
}
Also used : IOCompletion(com.ibm.disni.nvmef.spdk.IOCompletion) NvmeCommand(com.ibm.disni.nvmef.NvmeCommand) StorageEndpoint(org.apache.crail.storage.StorageEndpoint) NvmeEndpoint(com.ibm.disni.nvmef.NvmeEndpoint)

Aggregations

NvmeCommand (com.ibm.disni.nvmef.NvmeCommand)1 NvmeEndpoint (com.ibm.disni.nvmef.NvmeEndpoint)1 IOCompletion (com.ibm.disni.nvmef.spdk.IOCompletion)1 StorageEndpoint (org.apache.crail.storage.StorageEndpoint)1