blob: use internal _spdk_blob_resize when creating blob
Upcoming patches will make spdk_blob_resize() asynchronous to allow for resizing while I/O is in progress. During blob creation, it is not possible for I/O to be in progress, so just use the internal _spdk_blob_resize which will remain synchronous and called only after I/O is frozen. Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: I02128612a5f1bcd8bb236da113b05e88aa52c310 Reviewed-on: https://review.gerrithub.io/404613 Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com> Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
This commit is contained in:
parent
620209e046
commit
ffc6a2ad50
@ -3529,7 +3529,7 @@ _spdk_bs_create_blob(struct spdk_blob_store *bs,
|
||||
_spdk_blob_set_thin_provision(blob);
|
||||
}
|
||||
|
||||
rc = spdk_blob_resize(blob, opts->num_clusters);
|
||||
rc = _spdk_blob_resize(blob, opts->num_clusters);
|
||||
if (rc < 0) {
|
||||
_spdk_blob_free(blob);
|
||||
cb_fn(cb_arg, 0, rc);
|
||||
|
Loading…
Reference in New Issue
Block a user