n*spsc uring_pool
This commit is contained in:
@@ -504,7 +504,7 @@ static int kvs_rbtree_save_node(iouring_ctx_t *uring, int fd, off_t *current_off
|
||||
for (int i = 0; i < count; i++) total += lens[i];
|
||||
|
||||
task_t *t = submit_write(uring, fd, bufs, lens, count, *current_off);
|
||||
cleanup_finished_iouring_tasks();
|
||||
cleanup_finished_iouring_tasks(uring);
|
||||
|
||||
if(!t) {
|
||||
perror("task init failed");
|
||||
@@ -532,7 +532,7 @@ int kvs_rbtree_save(iouring_ctx_t *uring, kvs_rbtree_t *inst, const char* filena
|
||||
|
||||
while (!uring_task_complete(uring)) {
|
||||
usleep(1000);
|
||||
cleanup_finished_iouring_tasks();
|
||||
cleanup_finished_iouring_tasks(uring);
|
||||
}
|
||||
close(fd);
|
||||
return rc;
|
||||
@@ -589,4 +589,4 @@ int kvs_rbtree_load(kvs_rbtree_t *inst, const char* filename){
|
||||
|
||||
fclose(fp);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user