blobfs: fix the wrong parameter in spdk_file_close

According to my code understanding, should be assigned
itself instead of req.

Signed-off-by: Ziye Yang <ziye.yang@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/452120 (master)

(cherry picked from commit dfbbcc74dd)
Change-Id: I0af4d56f8029269e0632bb6be6c9d912c7106cf8
Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/457213
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
This commit is contained in:
Ziye Yang 2019-04-26 08:11:06 +08:00 committed by Darek Stojaczyk
parent c7658dea37
commit 754c217d09

View File

@ -2639,7 +2639,7 @@ spdk_file_close(struct spdk_file *file, struct spdk_fs_thread_ctx *ctx)
args->file = file; args->file = file;
args->sem = &channel->sem; args->sem = &channel->sem;
args->fn.file_op = __wake_caller; args->fn.file_op = __wake_caller;
args->arg = req; args->arg = args;
channel->send_request(__file_close, req); channel->send_request(__file_close, req);
sem_wait(&channel->sem); sem_wait(&channel->sem);