diff --git a/lib/blob/blobstore.c b/lib/blob/blobstore.c index 196dbba28..ae677d79f 100644 --- a/lib/blob/blobstore.c +++ b/lib/blob/blobstore.c @@ -1489,7 +1489,7 @@ spdk_bs_opts_init(struct spdk_bs_opts *opts) opts->cluster_sz = SPDK_BLOB_OPTS_CLUSTER_SZ; opts->num_md_pages = SPDK_BLOB_OPTS_NUM_MD_PAGES; opts->max_md_ops = SPDK_BLOB_OPTS_MAX_MD_OPS; - opts->max_channel_ops = SPDK_BLOB_OPTS_MAX_CHANNEL_OPS; + opts->max_channel_ops = SPDK_BLOB_OPTS_DEFAULT_CHANNEL_OPS; memset(&opts->bstype, 0, sizeof(opts->bstype)); } diff --git a/lib/blob/blobstore.h b/lib/blob/blobstore.h index e36a4d331..7e7578f56 100644 --- a/lib/blob/blobstore.h +++ b/lib/blob/blobstore.h @@ -49,7 +49,7 @@ #define SPDK_BLOB_OPTS_CLUSTER_SZ (1024 * 1024) #define SPDK_BLOB_OPTS_NUM_MD_PAGES UINT32_MAX #define SPDK_BLOB_OPTS_MAX_MD_OPS 32 -#define SPDK_BLOB_OPTS_MAX_CHANNEL_OPS 512 +#define SPDK_BLOB_OPTS_DEFAULT_CHANNEL_OPS 512 #define SPDK_BLOB_BLOBID_HIGH_BIT (1ULL << 32) struct spdk_xattr { diff --git a/lib/lvol/lvol.c b/lib/lvol/lvol.c index 06de1bcb5..98a6b9e6c 100644 --- a/lib/lvol/lvol.c +++ b/lib/lvol/lvol.c @@ -40,6 +40,9 @@ /* Length of string returned from uuid_unparse() */ #define UUID_STRING_LEN 37 +/* Default blob channel opts for lvol */ +#define SPDK_LVOL_BLOB_OPTS_CHANNEL_OPS 8192 + SPDK_LOG_REGISTER_COMPONENT("lvol", SPDK_LOG_LVOL) static TAILQ_HEAD(, spdk_lvol_store) g_lvol_stores = TAILQ_HEAD_INITIALIZER(g_lvol_stores); @@ -391,6 +394,7 @@ spdk_lvs_load(struct spdk_bs_dev *bs_dev, spdk_lvs_op_with_handle_complete cb_fn req->bs_dev = bs_dev; spdk_bs_opts_init(&opts); + opts.max_channel_ops = SPDK_LVOL_BLOB_OPTS_CHANNEL_OPS; strncpy(opts.bstype.bstype, "LVOLSTORE", SPDK_BLOBSTORE_TYPE_LENGTH); spdk_bs_load(bs_dev, &opts, _spdk_lvs_load_cb, req);