diff --git a/lib/blobfs/blobfs.c b/lib/blobfs/blobfs.c index b8cedc41e..869c23ee0 100644 --- a/lib/blobfs/blobfs.c +++ b/lib/blobfs/blobfs.c @@ -2531,15 +2531,6 @@ spdk_file_close_async(struct spdk_file *file, spdk_file_op_complete cb_fn, void spdk_file_sync_async(file, file->fs->md_target.md_io_channel, __file_close_async__sync_done, req); } -static void -__file_close_done(void *arg, int fserrno) -{ - struct spdk_fs_cb_args *args = arg; - - args->rc = fserrno; - sem_post(args->sem); -} - static void __file_close(void *arg) { @@ -2568,7 +2559,7 @@ spdk_file_close(struct spdk_file *file, struct spdk_io_channel *_channel) BLOBFS_TRACE(file, "name=%s\n", file->name); args->file = file; args->sem = &channel->sem; - args->fn.file_op = __file_close_done; + args->fn.file_op = __wake_caller; args->arg = req; channel->send_request(__file_close, req); sem_wait(&channel->sem);