diff --git a/lib/blob/blobstore.c b/lib/blob/blobstore.c index 26466e9742..689328d174 100644 --- a/lib/blob/blobstore.c +++ b/lib/blob/blobstore.c @@ -3558,11 +3558,6 @@ spdk_blob_sync_md(struct spdk_blob *blob, spdk_blob_op_complete cb_fn, void *cb_ return; } - if (blob->state == SPDK_BLOB_STATE_CLEAN) { - cb_fn(cb_arg, 0); - return; - } - _spdk_blob_sync_md(blob, cb_fn, cb_arg); } @@ -3683,11 +3678,6 @@ void spdk_blob_close(struct spdk_blob *blob, spdk_blob_op_complete cb_fn, void * return; } - if (blob->state == SPDK_BLOB_STATE_CLEAN) { - _spdk_blob_close_cpl(seq, blob, 0); - return; - } - /* Sync metadata */ _spdk_blob_persist(seq, blob, _spdk_blob_close_cpl, blob); }