Spdk/lib/blob
Jim Harris ee8af4e9f3 blob: fix _spdk_bs_load_ctx_fail ordering
Finish the sequence first, before calling _spdk_bs_free().
Otherwise synchronous bs_devs (like we use in the unit
tests) cause the sequence memory to get freed via
_spdk_bs_free() and then we try to finish the sequence.

This eliminates the need for g_scheduler_delay and
_bs_flush_scheduler() in the blob unit tests.  But don't
remove them - they will be useful in upcoming unit tests
for queued persist operations.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: I09aac3ae4d3a56ff8e04a5b822fcd6746f13afc3

Reviewed-on: https://review.gerrithub.io/401267
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Maciej Szwed <maciej.szwed@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
2018-02-27 10:58:29 -05:00
..
bdev blob: blob_bdev no longer converts unmap to write zeroes 2017-12-06 17:21:46 -05:00
blobstore.c blob: fix _spdk_bs_load_ctx_fail ordering 2018-02-27 10:58:29 -05:00
blobstore.h blob: remove SPDK_BLOB_STATE_SYNCING 2018-02-27 10:58:29 -05:00
Makefile blob: Add a bs_dev that always returns 0 2018-01-30 15:46:18 -05:00
request.c blob: change spdk_bs_io_xxx_blob functions to spdk_blob_io_xxx 2018-02-23 18:37:17 -05:00
request.h blob: support for thin provisioned reads and writes 2018-01-30 15:46:18 -05:00
zeroes.c blob: Add a bs_dev that always returns 0 2018-01-30 15:46:18 -05:00