Spdk/lib/blob
Jim Harris cf0d953044 blob: pass NULL or SPDK_BLOBID_INVALID when bserrno != 0
When an operation fails, we shouldn't pass a handle or
a 'valid' blob ID to the caller's completion function.
The caller *should* ignore it when bserrno != 0, but
it's best to not take that chance.

Fixes #685.

Note: #685 seems to have a broader issue related to
a possibly locked NVMe SSD in the submitter's system.
This only fixes the assert() that was hit.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: I3fb3368ccfe0580f0c505285d4b1e9aca797b6a6
Reviewed-on: https://review.gerrithub.io/c/445941 (master)
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/447449
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
2019-03-12 19:39:30 +00:00
..
bdev blobstore: Add support for bdev_blob_queue_io in blobstore 2018-09-11 21:19:34 +00:00
blob_bs_dev.c blobstore: allow I/O operations to use io unit size smaller than page size. 2018-10-04 21:35:24 +00:00
blobstore.c lvol: add option to change default data erase method 2019-01-23 22:25:37 +00:00
blobstore.h lvol: add option to change default data erase method 2019-01-23 22:25:37 +00:00
Makefile blobstore: Add a blob_bs_dev that provides back_bs_dev for clones 2018-03-08 11:34:15 -05:00
request.c blob: pass NULL or SPDK_BLOBID_INVALID when bserrno != 0 2019-03-12 19:39:30 +00:00
request.h blob: remove unused internal functions 2018-08-30 03:41:01 +00:00
zeroes.c blobstore: allow I/O operations to use io unit size smaller than page size. 2018-10-04 21:35:24 +00:00