diff --git a/lib/blobfs/blobfs.c b/lib/blobfs/blobfs.c index 33ba49850..59e9426ce 100644 --- a/lib/blobfs/blobfs.c +++ b/lib/blobfs/blobfs.c @@ -2457,6 +2457,7 @@ spdk_file_write(struct spdk_file *file, struct spdk_fs_thread_ctx *ctx, if (extend_args.rc) { return extend_args.rc; } + pthread_spin_lock(&file->lock); } flush_req = alloc_fs_request(channel);