numam-spdk/lib
Tomasz Zawadzki eb341e7d32 lvol: do not refer to blob when create returned error
Recent improvements to blobstore code, allow proper
reporting whenever error occured.

Callback for blob_create, should not refer to the blob
pointer when the operation failed.
Defer checking spdk_blob_get_id(blob), til after checking
error code.

This has been encountered in "vhost_boot" test:
  15:20:54	# /var/jenkins/workspace/vhost-autotest/spdk/scripts/rpc.py -s /home/sys_sgci/vhost_test/vhost/0/rpc.sock bdev_lvol_create -u d605539d-2186-486f-bc3e-745e33d37072 lvb0 20000
vhost: blobstore.c:5101: spdk_blob_get_id: Assertion `blob != NULL' failed.

https://ci.spdk.io/results/autotest-per-patch/builds/8135/archive/vhost-autotest/build.log

Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Change-Id: Id926576e10a72e0d50fb65105be07c8ae8e40096
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1604
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
2020-04-02 07:03:35 +00:00
..
accel make: rev SO versions individually for libraries. 2020-03-18 08:02:30 +00:00
bdev make: rev SO versions individually for libraries. 2020-03-18 08:02:30 +00:00
blob lib/blob: add more error paths on blob_persist 2020-04-02 07:03:35 +00:00
blobfs make: rev SO versions individually for libraries. 2020-03-18 08:02:30 +00:00
conf make: rev SO versions individually for libraries. 2020-03-18 08:02:30 +00:00
env_dpdk memory.h: move to public headers 2020-03-19 08:50:45 +00:00
env_ocf lib/bdev/ocf: update of ocf library to version 19.06 2019-10-22 17:22:41 +00:00
event lib/event: Add elapsed time of thread to output of framework_get_reactors RPC 2020-03-25 07:52:53 +00:00
ftl make: rev SO versions individually for libraries. 2020-03-18 08:02:30 +00:00
ioat memory.h: move to public headers 2020-03-19 08:50:45 +00:00
iscsi lib/iscsi: Use spdk_sn32_lt/gt() to compare two sequence numbers 2020-03-19 08:51:31 +00:00
json make: rev SO versions individually for libraries. 2020-03-18 08:02:30 +00:00
jsonrpc make: rev SO versions individually for libraries. 2020-03-18 08:02:30 +00:00
log make: rev SO versions individually for libraries. 2020-03-18 08:02:30 +00:00
log_rpc make: rev SO versions individually for libraries. 2020-03-18 08:02:30 +00:00
lvol lvol: do not refer to blob when create returned error 2020-04-02 07:03:35 +00:00
nbd make: rev SO versions individually for libraries. 2020-03-18 08:02:30 +00:00
net make: rev SO versions individually for libraries. 2020-03-18 08:02:30 +00:00
notify make: rev SO versions individually for libraries. 2020-03-18 08:02:30 +00:00
nvme nvme: save separate metadata size to nvme request 2020-04-02 07:02:38 +00:00
nvmf nvmf/fc: Add FC listen addresses to target listeners 2020-04-02 07:02:25 +00:00
reduce make: rev SO versions individually for libraries. 2020-03-18 08:02:30 +00:00
rocksdb global: rename copy to accel 2020-02-18 08:05:34 +00:00
rpc make: rev SO versions individually for libraries. 2020-03-18 08:02:30 +00:00
rte_vhost make: rev SO versions individually for libraries. 2020-03-18 08:02:30 +00:00
scsi make: rev SO versions individually for libraries. 2020-03-18 08:02:30 +00:00
sock make: rev SO versions individually for libraries. 2020-03-18 08:02:30 +00:00
thread lib/thread: spdk_thread_poll() measures run time per call by reading end TSC 2020-03-25 07:52:53 +00:00
trace make: rev SO versions individually for libraries. 2020-03-18 08:02:30 +00:00
ut_mock make: rev SO versions individually for libraries. 2020-03-18 08:02:30 +00:00
util pipe: Simplify the pipe code 2020-03-31 07:59:26 +00:00
vhost vhost: refactor process_vq 2020-03-26 08:12:35 +00:00
virtio memory.h: move to public headers 2020-03-19 08:50:45 +00:00
vmd make: rev SO versions individually for libraries. 2020-03-18 08:02:30 +00:00
Makefile global: rename copy to accel 2020-02-18 08:05:34 +00:00