A future patch will queue an operation in _spdk_blob_request_submit_op_single if the cluster is not allocated and another allocation is already in progress. If the queueing fails because of no channel resources, we want to fail the callback and need to do this before creating the batch. This causes a bit of code duplication, but in the end should make the code easier to read. While here, pass spdk_blob instead of spdk_blob_data to _spdk_blob_request_submit_op_single. This simplifies a future patch which will need the spdk_blob when queueing an operation. It also incidentally makes it consistent with _spdk_blob_request_submit_op_split. Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: Ib0ec0e5138eac5bf208fcde6676cd2a77a1a663f Reviewed-on: https://review.gerrithub.io/395196 Reviewed-by: Maciej Szwed <maciej.szwed@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com> Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> |
||
---|---|---|
.. | ||
bdev | ||
blobstore.c | ||
blobstore.h | ||
Makefile | ||
request.c | ||
request.h |